Category Archives: Uncategorized

Laravel: Datatable

Assalamualaikum / Hi, Today I will share how to use Datatables in your Laravel project. I will cover on: Setting up Datatables Compiling Datatables Asset with Laravel Mix Create route for Datatables Create reusable Blade Template for Datatable Part 1: Installation Create a new laravel project. Install package.json dependencies with npm install or yarn install.… Read More »

Laravel: Observer

Assalamualaikum & Hi, Eloquent models fire several events, allowing you to hook into the following points in a model’s lifecycle: retrieved, creating, created, updating, updated, saving, saved, deleting, deleted, restoring, restored. Events allow you to easily execute code each time a specific model class is saved or updated in the database. Based on events above,… Read More »