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… Continue reading Keep Get Variables with Laravel 5 Pagination in Blade
Tag: Laravel
Laravel 5 Select Random Row
To select a random row from MySQL using php is not a real hard process. you always can use the rand() function within your queries. but if you are using Laravel and Eloquent Model to work with your database you really should check the random() method out. Doing a select with your model and using… Continue reading Laravel 5 Select Random Row