A simple way of displaying dynamic pagination in Vue.js with Laravel

In any web application, pagination is a common feature being used with a table to handle a huge amount of data. This feature can help reduce the data loaded into the table by splitting it into multiples pages. Each page contains a set of data based on the number $per_page given. Building a pagination feature… Continue reading A simple way of displaying dynamic pagination in Vue.js with Laravel

Refactoring routes & controllers on the nested resource in Laravel

A nested resource is a resource with another sub-resource (eg: one-to-many relationship). For instance, a podcast may have multiple episodes. The nested resource of podcast and episodes can be defined as below in Laravel: use App\Http\Controllers\PodcastEpisodesController; Route::resource('podcast.episodes', PodcastEpisodesController::class); The URIs defined in route will be like this: /podcast/{podcast}/episodes/{episode} A similar example in official Laravel 8.x… Continue reading Refactoring routes & controllers on the nested resource in Laravel