Tag Archives : laravel

Fix Laravel Schedule Problem “Invalid argument supplied for foreach”

June 4, 2016 | Harun | In Error Solve

This tricks for who are getting an exception when executing laravel schedule task. The exception message looks like 'ErrorException' with message 'Invalid argument supplied for foreach'. By little tricks, you can run your schedule task without any exception.Use it :php -d register_argc_argv=On public_html/artisan schedule:run 1>> /de...

Comments 0 | Views 0 Read More

Remove “public” from url in laravel project.

May 3, 2016 | Harun | In Laravel Tips & Tricks

In laravel framework by default, all the route will get after the "public" in URL like http://localhost/my-project/public/myroute. There are some solution for avoiding the public from URL, Here I'll show you a simple solution where you don't have to setup extra configuration in live server. You don't have to think about a virtual host or is the project in local or remote server. Let's see t...

Comments 1 | Views 0 Read More

Laravel 5 Tutorial (05) :: Retrieve data from database table.

July 27, 2015 | Harun | In TODO Application

From Last tutorial we learnt how to insert data in our database table. Today I'll discuss about how to retrieve data from our database. Let's see the procedure.Go to TodoController and define the index method like as below

public function index() { $data=Todo::all(); return view('home')->with('data',$d...

Comments 0 | Views 84405 Read More

Laravel 5 Tutorial (01) :: Install Laravel 5 in Windows.

July 8, 2015 | Harun | In TODO Application

There are many installation process described in Laravel official website. Here i will describe the very easy method to install laravel 5 in Windows. Please sure before install laravel 5 that your PHP version is greater or equal 5.4

    1. First download composer and ...

      Comments 0 | Views 50432 Read More