LaraDock: Dockerizing my PHP Development Environment

As a PHP Developer I’ve always had instances of webserver, php & database server running as first level services on my Development machines. I can claim that configuring LAMP (recently LEMP) stack was always one of the first things I’d do when I get a new machine. I’ve been using Docker for running other services …

Laravel 5.2: entrust migration exception

[Illuminate\Database\QueryException] SQLSTATE[42000]: Syntax error or access violation: 1103 Incorrect table name ” (SQL: alter table `role_user` add constraint `role_user_user_id_foreign` foreign key (`user_id`) references “ (`id`) on delete cascade on update cascade) Today I pulled a fresh Laravel 5.2 (5.2.31) installation to work on the new project in company, when I was trying to install entrust …

Laravel 5: Manual Pagination From Array.

Laravel documents is not covering anything about making a pagination from your custom array. its very nice and easy to use pagination out of the box with eloquent queries, but if you want to know how to do it with your custom arrays then you might find it hard searching around in their website. Anyway …

Keep Get Variables with Laravel 5 Pagination in Blade

Using pagination in Laravel views using blade will automatically add the pages get request to the page whenever you click on a page number. by default this will cause all other get requests of the page to be removed and replaced by ?pages. To overcome this you should use the pagination in your blade template …