New in Laravel 8.80: Route::controller() with Groups

preview_player
Показать описание
A quick demo of a new Laravel 8.80 feature: you can define the controller to a group, and then you don't need to repeat it for all methods inside the group.

Links mentioned in the video:

- - - - -
Support the channel by checking out our products:
Рекомендации по теме
Комментарии
Автор

When I started using Laravel, the first thing I tried to do with Routes was exactly that! and I didnt find the way to set the controller once for a route group, but finally 💪

ricko
Автор

This is awesome. Laravel keep getting better every day. Thanks for sharing.

brainyworld
Автор

Awesome. When you think things cannot be better, they release this like this. It is just awesome.

TobiasOlssonHovby
Автор

starting the day with a laravel doping is amazing. Thank you.

fatih-araz
Автор

The route file becomes so beautiful now!

nmaniacos
Автор

This is a huge time saver, and makes for much cleaner code.

fortheSavior
Автор

This is Awesome. It makes the routes more simple and clean.

suleimanmamman
Автор

Awesome feature, I like it very much,

RehmanKhan-zvrl
Автор

this actually solves a DRY problem within the route. I like this feature

KwabenaAfreh
Автор

The Code becomes shorter and more DRY. It's good!

vasilyya
Автор

Finally! I've been longing for this feature to be added since v6. Copying and pasting the controller's name on each route is a bit frustrating

jeytii
Автор

Its amazing .... thanks to keep us updated

anmolkaithwas
Автор

In this case, you won't be able to go from web.php to controller method directly using Cmd/Ctrl+Click, right?

denisdulici
Автор

🔥🔥🔥🔥🔥🔥 thats what i think about this feature, and also because its a non-breaking feature

TheCrossy
Автор

Be careful when implementing this, if you have colleagues like I do who included some prefix manually in web.php and also set controller prefix in RoutseServiceProvider this did not work because it imported the namespace twice. Other than that if you adjust your routes it's a great feature.

RudolfBrudersChannel
Автор

This is nice feature & clean routes, but may be problematic for us like ctrl+click goto controller method in vs code.

shrikantdharam
Автор

Very nice, Thank you !
Muito bom, obrigado pelo conteúdo !

pwcodigo
Автор

Thanks Povilas.. happy to hear about v9.
But I think these features are nothing.. let's agree that v5.8 the best of Laravel
P.s. + jobs features from v8

BoolFalse
Автор

Route group chaining in array, supports route::controller?

bumblebity
Автор

omg, finally! gonna update it to latest version!
anyway, is it work for Route::resource? and is the method will still show type hint dropdown helper especially in phpstorm?

bboydarknesz