Route Grouping Explained | Laravel 10 Tutorial #23

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

Yelo Code

Yelo Code

Күн бұрын

Пікірлер: 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 М.
🍉😋 #shorts
00:24
Денис Кукояка
Рет қаралды 1,3 МЛН
Je peux le faire
00:13
Daniil le Russe
Рет қаралды 22 МЛН
Apple peeling hack @scottsreality
00:37
_vector_
Рет қаралды 127 МЛН
Refactor "Senior" PHP Code with Early Returns
12:09
Laravel Daily
Рет қаралды 26 М.
Laravel Livewire: Real Projects
5:09
neverything
Рет қаралды 2,6 М.
Like Button | Laravel 10 Tutorial #33
27:37
Yelo Code
Рет қаралды 6 М.
Routing in Laravel: A Comprehensive Guide for Beginners
40:46
Codes Easy
Рет қаралды 4,6 М.
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 187 М.
I built 10 web apps... with 10 different languages
14:23
Fireship
Рет қаралды 1,6 МЛН
The Story of Next.js
12:13
uidotdev
Рет қаралды 578 М.