Laravel – #1071 Specified key was too long; max key length is 767 bytes

When first time I installed the Laravel 5.4 and generate the Auth module using artisan command. When I am going to run Laravel migration command I got an error like “Specified key was too long; max key length is 767 bytes”, I want to share solutionĀ of that issue on my blog.

Continue reading Laravel – #1071 Specified key was too long; max key length is 767 bytes

Custom validation rules in Laravel 5.5

Laravel provides powerful validation rules. Laravel provides lists of the validations rules that help us to validation incoming data before saving it in the database. We can easily print validation messages on blade file. Laravel provide manually creating validation request and Automatic redirection to the form. Continue reading Custom validation rules in Laravel 5.5

Laravel 5.5 HMVC modular structure

Laravel is the amazing framework. However when it comes to writing more complex and bigger application easily. Nowadays the Laravel is mostly used PHP framework for developing complex and bigger application. The default Laravel structure comes with cumbersome and not ideal.

Continue reading Laravel 5.5 HMVC modular structure

Laravel 5.5 create a first artisan console command

Laravel is the most popular PHP Object Oriented framework. Laravel provides awesomely artisan console functionality. Laravel artisan console provides lists of commands that can assist you while building your application. So, How can we create a first artisan console command?

Continue reading Laravel 5.5 create a first artisan console command

Laravel export table data to excel sheet using Laravel excel

Laravel export table data to excel sheet using Laravel Excel. Many times we need to export user data and product and order data. So let’s see, The easiest way to get the data table data using eloquent model and export data to excel file.

Continue reading Laravel export table data to excel sheet using Laravel excel

Laravel Faker generate dummy data for testing

Nowadays, The Laravel is the most popular framework. The most of the project is developed on the Laravel. On the many projects, we need to test project with many dummy data. If we create the testing data then it will take too much time. So let’s see, how we can create the much more data without westing the time.

Continue reading Laravel Faker generate dummy data for testing

Laravel call artisan command from route or controller

Laravel provides awesome artisan command functionality. using artisan command we can create the controller and model file or clear the blade file cache and many more. How we can call artisan command from controller or route.

Continue reading Laravel call artisan command from route or controller

Laravel create excel file directly from blade view using Laravel Excel Maatwebsite

Laravel create the excel file directly from the blade view HTML table. It’s too easy and the fastest way to generate excel file from HTML table. Without blade view file we need to create the code for the generating the excel file. We need to set the array to the proper column format for generating the excel sheet. Now, forget all those things and just create the table on the Laravel blade view file.

Continue reading Laravel create excel file directly from blade view using Laravel Excel Maatwebsite