#6. Create Custom Routes Files

preview_player
Показать описание
In this video, we will create custom route files in order to manage routes.
This Laravel e-commerce uses many components and tools. In development process, we used to link offline JS and CSS files, but on production mode you can use CDNs links for improving loading speed of pages. Below are some more important source of tools used in this project:

Get source code (Draft) by clicking on below links. This is a draft! It is not full code. This will vary according to the tutorial video we are on YouTube channel.

- 📥Get "Build Laravel 10 Multi Vendor ECommerce project - Draft"

Other required files:

- ✅Ijabo Packs:

- ✅IjaboShop - Simple Responsive HTML Ecommerce Frontend Template:
Рекомендации по теме
Комментарии
Автор

For those who need to upgrade Livewire from v2 to v3. Just watch this video:

sawastacks
Автор

01:00 In Laravel 11 custom routing files are registered in a file located at the path bootstrap/app.php:

return dirname(__DIR__))
->withRouting(
web: __DIR__.'/../routes/web.php',
commands: __DIR__.'/../routes/console.php',
health: '/up',
then: function() {

}
)
->withMiddleware(function (Middleware $middleware) {
//
})
->withExceptions(function (Exceptions $exceptions) {
//
})->create();


In routes/admin.php:

<?php

use

Route::get('/', function() {
return 'hello admin';
});

vyacheslavvasilev
Автор

hi sir plz continue this toturial we can't wait🌷❤

mr.webdesinger
Автор

Please sir, can you explain to me why you have to create 3 route files instead of writing them in web.php file, does this have any special effect? Thanks

hoangsangnguyen