Route Grouping Explained | Laravel 10 Tutorial #23

  Рет қаралды 5,520

Yelo Code

Yelo Code

Күн бұрын

Laravel 10 route grouping Tutorial
On this episode we cover how to refactor our route files using route grouping and reduce duplicate code.
Playlist of Laravel 10 Tutorial Course :
• Laravel 10 Beginners C...
What is Laravel :
Laravel is a free and open-source PHP web framework, created by Taylor Otwell and intended for the development of web applications following the model-view-controller architectural pattern and based on Symfony.
en.wikipedia.o...
If you're looking to learn how to authenticate a user using Laravel 10, then this is the video for you! In this tutorial, In this tutorial, we'll create a simple registration form that users will be able to submit.
If you have any questions or problems please leave a comment.
Laravel Blade
Laravel crash course
Laravel Database and crud tutorial
Laravel Login and Authentication
Laravel registration

Пікірлер: 24
@samehfathy5981
@samehfathy5981 2 ай бұрын
PPl like u are so precious fr , Thank u alot man !
@kouzokiodin3623
@kouzokiodin3623 3 ай бұрын
Thank u so much sir! Well explained
@yelocode
@yelocode 3 ай бұрын
Thanks for watching
@basilistigris640
@basilistigris640 Жыл бұрын
very nice laravel 10 project and lessons, thank you Coding Flick, keep make laravel 10 projects and livewire 3
@yelocode
@yelocode Жыл бұрын
Thank you for watching. Glad you like the videos. I have a new set of videos coming for livewire 3 in the next few days.
@Vichion
@Vichion 9 ай бұрын
VSCode autocompletion suggest Route::middleware(['auth'])->group(function () { Route::get('/{idea}/edit', [ideaController::class, "edit"])->name("edit"); Route::put('/{idea}', [ideaController::class, "update"])->name("update"); Route::delete('/{id}', [ideaController::class, "destroy"])->name("destroy"); }); and that worked too!
@yelocode
@yelocode 9 ай бұрын
That is also possible, can use which ever you prefer.
@isaiahsemeton7473
@isaiahsemeton7473 10 ай бұрын
very nice tutorial thanks very much
@yelocode
@yelocode 9 ай бұрын
You are welcome
@lucascavalheri7217
@lucascavalheri7217 Жыл бұрын
Will you show how to deploy the application? BTW, great series!!
@yelocode
@yelocode Жыл бұрын
Thank you for watching. Will definitely cover deployment at the end of the course.
@lucascavalheri7217
@lucascavalheri7217 Жыл бұрын
​@@yelocode Nice! Thank you for your service! Will you use Laravel Forge? Im excited to see how this works! If not, do you intend to cover it?
@yelocode
@yelocode Жыл бұрын
Right now, I'm thinking about covering DigitalOcean. But may go ahead and use forge as well since it will make the installation process a lot easier
@LoneTaha
@LoneTaha 6 ай бұрын
great! thank you
@snipohyper285
@snipohyper285 17 күн бұрын
in Laravel Framework 11.21.0 .they removed the route service provider ,tried to add it but it didnt load the routes .i did php artisan route:list and it only showed the ones present in the web.php .how can i make it that it would also include the route service provider? thanks in advance
@filipivanovic9556
@filipivanovic9556 17 күн бұрын
same problem bro, I hope we will find solution for this....
@Iamirkia
@Iamirkia 5 ай бұрын
Hi. thanks for your amazing videos. I have a problem, could you help me please? there isn't RouteServiceProvider.php in laravel 11. what should I do?
@ramakrishnadas8723
@ramakrishnadas8723 5 ай бұрын
Hi, I had the same issue as you. I also have Laravel 11. I also managed to solve this issue. So, firstly, as you said, Laravel 11 doesn't have RouteServiceProvider.php. Instead, the same functionality is available in the following file: bootstrap/app.php. Now, I had to research how to add the new route. Here is the code I used to achieve this. This is what the bootstrap/app.php should return: return Application::configure(basePath: dirname(__DIR__)) ->withRouting( using: function (Illuminate\Routing\Router $router) { $router->middleware('web') ->group (base_path('routes/auth.php')); $router->middleware('web') ->group (base_path('routes/web.php')); }, commands: __DIR__.'/../routes/console.php', health: '/up', ) ->withMiddleware(function (Middleware $middleware) { // }) ->withExceptions(function (Exceptions $exceptions) { // })->create(); This worked for me. I hope it works for you. Let me know if you have any issues.
@Iamirkia
@Iamirkia 5 ай бұрын
@@ramakrishnadas8723 Thank you so much 💙💙
@khairulamin5693
@khairulamin5693 3 ай бұрын
i just find out that var web is an array so we can just add the path inside: web: [__DIR__.'/../routes/web.php',__DIR__.'/../routes/auth.php'], its work for me 🤣
@echoptic775
@echoptic775 Жыл бұрын
Couldnt you use Route::resource and make an IdeaController to remove a lot of unnecessary code for the routes
@yelocode
@yelocode Жыл бұрын
Yes, definitely using Route::resource would reduce all the code and would be a better option. Mainly wanted to focus on route groups on this video. Will very likely cover resource routing on a different video or tips video.
@TheKuisin
@TheKuisin 6 ай бұрын
This. Is. 'Holy Bible' for Laravel Thank you so much.
Resource Routing Explained | Laravel 10 Tutorial #24
9:18
Yelo Code
Рет қаралды 4,6 М.
Laravel Route Grouping: Simple to Very Complex
13:32
Laravel Daily
Рет қаралды 48 М.
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 63 МЛН
Cute
00:16
Oyuncak Avı
Рет қаралды 11 МЛН
Emails & Mail Trap testing | Laravel 10 Tutorial #29
16:17
Yelo Code
Рет қаралды 6 М.
Laravel 10 full course for beginner -  Understand the migrations
12:29
Bitfumes - AI & LLMs
Рет қаралды 29 М.
Like Button | Laravel 10 Tutorial #33
27:37
Yelo Code
Рет қаралды 6 М.
Refactor "Senior" PHP Code with Early Returns
12:09
Laravel Daily
Рет қаралды 26 М.
SOLID Principles in Laravel: 5 Examples (+ New Course!)
21:07
Laravel Daily
Рет қаралды 73 М.
Laravel 10 : Les routes, guide complet !
28:35
Parfaitement Web
Рет қаралды 14 М.
Profile Page | Laravel 10 Tutorial #26
18:47
Yelo Code
Рет қаралды 7 М.
What is Middleware ? How to use Middleware in Laravel with Example
13:47
Web Tech Knowledge
Рет қаралды 12 М.
Authorization Basics | Laravel 10 Tutorial #22
13:48
Yelo Code
Рет қаралды 7 М.