skip to Main Content

Laravel @csrf empty value

The result generated by @csrf in Blade <input type="hidden" name="_token" value=""> Also tried {!! csrf_field() !!} and {{ csrf_field() }} but still there is no value . I know this question is already asked Laravel CSRF value empty, but the…

VIEW QUESTION

Laravel Policy to limit Filament Bulk Delete

In my Laravel project, I try to limit delete action. Non-admin users should be able to delete only their own content. public function forceDelete(User $user, Slider $slider): bool { return $user->hasRole("Admin") || $slider->created_by === $user->id; } I can still see…

VIEW QUESTION
Back To Top
Search