Last active
May 15, 2023 12:33
-
-
Save nataliaconde/d498c01be913e215b12c906021928d18 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use App\Policies\PostPolicy; | |
use Illuminate\Support\Facades\Gate; | |
/** | |
* Register all authorization and authentication services. | |
*/ | |
public function boot(): void | |
{ | |
Gate::define('can_post', [PostPolicy::class, 'update']); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment