As part of Laravel , we can now chain a can() method directly off of a Route declaration. This provides an easy way to add authorization to any route. Let’s review a quick example that provides a before and after illustration.
Watch thousands of lessons, track your progress, and participate in a massive Laravel community at .
Laracasts:
Laracasts Twitter:
Jeffrey Way Twitter:
9 views
103
31
3 months ago 00:25:55 7
Using Generics with PHP
4 months ago 00:12:34 1
Dive Deeper with Actions
4 months ago 00:18:39 1
The Intermediate Developer Trap
9 months ago 00:01:04 1
What’s New in Laravel 11, Ep 05 - Sqlite Out of the Box
10 months ago 00:06:29 1
Small Laravel Packages - Big Impact, Ep 02 - Laravel Login Link
10 months ago 00:00:56 1
Small Laravel Packages - Big Impact, Ep 01 - Hello
11 months ago 00:15:22 2
Jeremy McPeak’s Larabits - HTMX May Be All You Need
1 year ago 00:16:05 3
Luke Downing’s Larabits - Laravel Pulse First Look
1 year ago 00:19:37 5
Jeffrey Way’s Larabits - Effortless Animations with AutoAnimate
1 year ago 00:12:21 1
From Blank to Blog With Laravel in 10 Minutes
1 year ago 00:19:49 3
Laravel Prompts First Look
3 years ago 00:04:47 2
Automatic TailwindCSS Class Sorting in 4 Minutes
3 years ago 00:04:33 5
TailwindCSS on the Command Line?
3 years ago 00:11:10 2
3 Excellent New Features in
3 years ago 00:16:52 1
Mode and Keybinding Primer for the Vim-Curious
3 years ago 00:14:24 7
My 5 Favorite Laravel Collection Methods
3 years ago 00:17:20 6
Transform VS Code into a Formidable PHP Experience