Tag Archives: laravel

Laravel 5.1 Pass middleware parameters as array

Laravel has added support for middleware parameter since version 5.1 . So it is nice that we can pass middleware parameter from Routes.php or from controller. Let’s see an example. or in controller constructor and in middleware handle function you can catch argument which is passed as mentioned below:


How to create tables in Laravel using artisan?

How to create tables in Laravel using artisan? Step by step process. Follow the following steps to create a table in Laravel using artisan. Need to configure the database in database file. Database configuration file is located at ’ laravel\app\database.php’. Here I am going to create a category table with it’s basic fields. So run […]