Skip to content

Commit 01f08f8

Browse files
authored
Merge pull request #334 from drbyte/patch-1
Fix minor typos in README.md
2 parents 234d6e7 + ef033e0 commit 01f08f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ This package is just a user interface for [spatie/laravel-permission](https://gi
3333
composer require backpack/permissionmanager
3434
```
3535

36-
2) Finish all installation steps for [spatie/laravel-permission](https://github.com/spatie/laravel-permission#installation), which as been pulled as a dependency. Run its migrations. Publish its config files. Most likely it's:
36+
2) Finish all installation steps for [spatie/laravel-permission](https://github.com/spatie/laravel-permission#installation), which has been pulled as a dependency. Run its migrations. Publish its config files. Most likely it's:
3737
```shell
3838
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider" --tag="permission-migrations"
3939
php artisan migrate
@@ -98,7 +98,7 @@ OR
9898
(7.B.) Add a middleware to all your Backpack routes by adding this to your ```config/backpack/base.php``` file:
9999
```diff
100100
// The classes for the middleware to check if the visitor is an admin
101-
// Can be a single class or an array of clases
101+
// Can be a single class or an array of classes
102102
'middleware_class' => [
103103
App\Http\Middleware\CheckIfAdmin::class,
104104
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
@@ -180,7 +180,7 @@ You can also determine if a user has all of a given list of roles:
180180
``` bash
181181
backpack_user()->hasAllRoles(Role::all());
182182
```
183-
The assignRole, hasRole, hasAnyRole, hasAllRoles and removeRole-functions can accept a string, a Role-object or an \Illuminate\Support\Collection-object.
183+
The assignRole, hasRole, hasAnyRole, hasAllRoles and removeRole-functions can accept a string, an array, a Role-object or an \Illuminate\Support\Collection-object.
184184

185185
A permission can be given to a role:
186186
``` bash
@@ -227,7 +227,7 @@ This package also adds Blade directives to verify whether the currently logged i
227227
@endhasallroles
228228
```
229229

230-
You can use Laravels native @can directive to check if a user has a certain permission.
230+
You can use Laravel's native @can directive to check if a user has a certain permission.
231231

232232

233233
## Upgrade from 3.x to 4.x

0 commit comments

Comments
 (0)