From 5b541c8cd0e4e0397dbb9d0ae508e6d7344f7c78 Mon Sep 17 00:00:00 2001 From: Hasin Hayder Date: Fri, 27 May 2022 19:27:00 +0600 Subject: [PATCH] Readme Updated - Added a Tutorial --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 137fed7..5f28f58 100644 --- a/README.md +++ b/README.md @@ -853,13 +853,13 @@ Route::get('greet', [MessageControler::class,'greet'])->middleware(['auth:sanctu ``` Now only a `HTTP GET` call with a valide admin user's access token can access this route. -If you want this route to be accessible by the users with `admin`, and the `user` role, then modify it like this. +If you want this route to be accessible by the users with `admin`, **or** the `user` role, then modify it like this. ```php Route::get('greet', [MessageControler::class,'greet'])->middleware(['auth:sanctum', 'ability:admin,user']); ``` -If you want this route to be accessible by the users with both `user`, and the `customer` role, then modify it like this. +If you want this route to be accessible by the users with both `user`, **and** the `customer` role, then modify it like this. ```php Route::get('greet', [MessageControler::class,'greet'])->middleware(['auth:sanctum', 'abilities:customer,user']);