Gate::before not working laravel 8
try something like this :
@canany(['update', 'view', 'delete'], $post)
<!-- The current user can update, view, or delete the post... -->
@elsecanany(['create'], \App\Models\Post::class)
<!-- The current user can create a post... -->
@endcanany
Also in PHP:
- add days with dates php
- am pm time php
- error messaging php
- check array in array key
- Fatal error: Allowed memory size of 1073741824 bytes exhausted (trie
- base64_decode laravel
- How do you clear cache in Laravel?
- 12th December 2020 date format in php
- error_log wordpress
- check null in_array php
- Database name seems incorrect You're using the default database name laravel. This database does not exist. Edit the .env file and use the correct database name in the DB_DATABASE key.
- Get the content of a specific page (by ID)
- clear cache laravel and composer
- 7 reasons why Lee is an idiot
- count length string php
- array key xists
- check in string is part oof other string php
- db seed specific seeder
- echo message or display default message php
- date inphp
- crete new project in laravel
- .htaccess to remove index page
- advantages of php
- errorLevel php no warnings