@@ -345,7 +345,7 @@ Checking for multiple permissions:
345345if ($user->hasPermissions(['users.create', 'users.edit'])) {
346346 // This user has both creation and edit rights.
347347} else {
348- // It looks like the user doesn't have one of the specified permissions.
348+ // The user doesn't have one of the specified permissions.
349349}
350350```
351351
@@ -355,7 +355,7 @@ Checking if the user has any permissions:
355355if ($user->hasAnyPermissions(['users.create', 'users.edit', 'users.destroy'])) {
356356 // This user either has create, edit or destroy permissions.
357357} else {
358- // It looks like the user doesn't have any of the specified permissions.
358+ // The user doesn't have any of the specified permissions.
359359}
360360```
361361
@@ -365,7 +365,7 @@ Checking if the user has a role:
365365if ($user->hasRole('administrator')) {
366366 // This user is an administrator.
367367} else {
368- // It looks like the user isn't an administrator.
368+ // The user isn't an administrator.
369369}
370370```
371371
@@ -375,7 +375,7 @@ Checking if the user has specified roles:
375375if ($user->hasRoles(['administrator', 'member'])) {
376376 // This user is an administrator and a member.
377377} else {
378- // It looks like the user isn't an administrator or member.
378+ // The user isn't an administrator or member.
379379}
380380```
381381
@@ -385,7 +385,7 @@ Checking if the user has any specified roles:
385385if ($user->hasAnyRoles(['administrator', 'member', 'guest'])) {
386386 // This user is either an administrator, member or guest.
387387} else {
388- // It looks like the user doesn't have any of these roles.
388+ // The user doesn't have any of these roles.
389389}
390390```
391391
0 commit comments