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

jQuery select2 get selected value using jQuery.

jQuery select 2 is the most popular javascript framework for the select dropdown. jQuery select 2 provide beautiful functionality for searching value from the dropdown option. jQuery select 2 is the best solution for the dropdown because We can easily render more than thousand of data on the dropdown.

Continue reading jQuery select2 get selected value using jQuery.

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