Laravel

Resource Controller with Resource Route in Laravel

Resource Controller with Resource Route in Laravel

In this short post, we will go over on How to create a resourceful controller in Laravel and also how to define a single line resource route in the web.php file. Resource Controller With Laravel, we...

Jun 10, 2019 · Tushar
Pivot Table and Many to Many relationship in Laraval

Pivot Table and Many to Many relationship in Laraval

If you are a beginner in Laravel you might find the concept of Pivot table a bit complex. But as is the case with any other feature, working with a pivot table in Laravel is a breeze. In this tutor...

Jun 08, 2019 · Tushar
Pass URL Get Parameters to Pagination Links in Laravel

Pass URL Get Parameters to Pagination Links in Laravel

However, it sounds so basic that Laravel should be handling it by default. But turns out Laravel does not pass the GET URL parameters to the pagination links by default, and there is an extra method y...

May 30, 2019 · Tushar
Installing Bulma package on Laravel

Installing Bulma package on Laravel

Recently I stumbled upon a clean and lightweight frontend framework Bulma. Bulma is a free opensource fontend framework based on flexbox and is a good alternate to Bootstrap. Laravel by default is...

May 09, 2019 · Tushar
Sort by Mysql JSON Field Value in Laravel

Sort by Mysql JSON Field Value in Laravel

I recently used JSON Mysql field value for the first time in Laravel and hit the roadblock soon on how to order the data using a field that is a JSON property. Since the data in the JSON property w...

Apr 06, 2019 · Tushar
Using Laravel's dd (dump and die) function in PHP

Using Laravel's dd (dump and die) function in PHP

One of the most common ways to debug an error in PHP ecosystem is to dump the variable on the screen, and figure out what is going wrong with it. The most common way we do it in PHP is via using va...

Feb 16, 2019 · Tushar