Md.Harun-Ur-Rashid
Md.Harun-Ur-Rashid
I am sending it with ajax request. The output is before: Array[0] after: student {create:true,read:true,update:true,delete:true} But when I send the request 2nd time it works.
Is it working for you? I can't figure out what is happening behind the scene. It is easy for you to say, what is the reason about that. Please help...
I have solved it by making a function @kodeine ``` /* * @return boolean * $userId * $module is name of module like student,teacher * $permissions is a assoc array...
Write it to `config/user-activity.php` ```php 'model' => [ 'user' => "App\Models\User" ], ```