Skip to content

Commit 1741969

Browse files
authored
Merge pull request #4809 from benjamincrozat/patch-1
Fixed wrong method and command
2 parents 7233792 + 7de95c8 commit 1741969

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

authorization.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,13 +393,13 @@ The `authorizeResource` method accepts the model's class name as its first argum
393393

394394
class PostController extends Controller
395395
{
396-
public function __constructor()
396+
public function __construct()
397397
{
398398
$this->authorizeResource(Post::class, 'post');
399399
}
400400
}
401401

402-
> {tip} You may use the `policy:make` command with the `--model` option to quickly generate a policy class for a given model: `php artisan policy:make --model=Post`.
402+
> {tip} You may use the `make:policy` command with the `--model` option to quickly generate a policy class for a given model: `php artisan make:policy PostPolicy --model=Post`.
403403
404404
<a name="via-blade-templates"></a>
405405
### Via Blade Templates

0 commit comments

Comments
 (0)