jQuery Set – Get – Add – Remove – css

Set Attributes – attr() The jQuery attr() method is also used to set/change attribute values. The following example…

JQuery – Click – Same Class But On Many Element

Listed Element <div class="links">   <ul style="font-size: 20px">     <li data-id="1">Nepal</li>     <li data-id="2">India</li>…

Including Other Route File inside web.php

As we know there might be lots of route written inside web.php.  Those route might belongs…

User – Role – Permission – Core – Laravel

Assuming we have freshly created following tables users Now create 2 following models along with its…

Broadcast – Event Broadcast Laravel

1. Define EVENT and its LISTENER in App\Providers\EventServiceProvider.php protected $listen = [ ‘App\Events\TaskEvent’ => [ ‘App\Listeners\TaskEventListener’,…

Policy in Laravel

Gates in Laravel

Gates are closure Determine if a user is auth to perform a given action Gates always…

Laravel Query – Where In and Where Not In

jQuery Add / Remove Table Rows Dynamically

Eloquent – Laravel Join on 3 Table

Laravel Spatie – Role Permission

Prerequisites Laravel 5.8 or higher User model must implement Illuminate\Contracts\Auth\Access\Authorizable contract. Otherwise the can() and authorize() methods will not work in…

AJAX Call using function with data-id