Laravel 10 Tutorial #4: Laravel Admin Panel | Create Route | AdminController | Correct Paths

Опубликовано: 01 Январь 1970
на канале: Stack Developers
9,872
86

►Laravel 10 Tutorial Playlist:    • Laravel 10 Tutorial: Make Admin Panel...  

In Part-4 of the Laravel 10 Tutorial in which we are first creating the admin panel, we will update layout files; header, footer and sidebar to correct css/js/images and plugins paths. We will also create route, function for admin dashboard page and set its design as well.

1) Update layout.blade.php file :-
First of all, we will update layout.blade.php file to add Laravel asset and url to css/js/images and plugins paths.

2) Update header.blade.php file :-
Now we will update the header.blade.php file to add Laravel asset to images paths.

3) Update sidebar.blade.php file :-
Now we will update sidebar.blade.php file to add Laravel asset to images paths.

4) Update dashboard.blade.php file :-
Now we will update dashboard.blade.php file to add Laravel asset to images paths.

5) Create AdminController.php file :-
Now create Admin folder under /app/Http/Controllers/ and then create AdminController.php file under Admin folder by running below artisan command :-
php artisan make:controller Admin/AdminController

We will keep all Admin Controllers separate from Front Controllers that will help us to do clear coding.

6) Create Route :-
We will create a separate group in the web.php file for admin routes so that we can keep them separately with namespace Admin and prefix admin.

We have added dashboard route without any authentication for now but in upcoming videos, we will add Guard Auth for admin routes.

7) Create function :-
We will create dashboard function in AdminController and will return to admin_dashboard.blade.php file.

You can see the view of the dashboard page by opening below link :-
http://127.0.0.1:8000/admin/dashboard

In next video, we will create admin login page as well. After that we will start working on Multi Auth; Guard for admin and default auth for users.

►Click here to subscribe for Laravel & other updates -    / stackdevelopers  

Popular Stack Developers Series that can help you:-

►Laravel 9 Tutorial Playlist (Create Multi-Vendor E-commerce Website) -    • Laravel Multi Vendor Tutorial  

►React JS Tutorial for Beginners with Laravel 9 -    • React JS Tutorial with Laravel for Be...  

►Laravel Tutorial for Beginners -    • Laravel Tutorial for Beginners | Adva...  

►GIT Tutorial for Beginners -    • Git Tutorial for Beginners | Create y...  

►Laravel API Tutorial -    • Laravel API Tutorial | Create API fro...  

►Laravel Interview Questions -    • Laravel Interview Questions & Answers...  

►jQuery Tutorial -    • jQuery Tutorial  

►Laravel Basic E-commerce Series -    • Make Admin Panel / E-commerce Website...  

►Laravel Dating Series -    • Make Dating / Social Networking Websi...  

►Join this channel to get the complete source code of all series:
   / @stackdevelopers  

Follow Stack Developers on Social Media to get updates and resolve your queries
►Like Facebook Page to get updates -   / stackdevelopers2  
►Join Facebook Group to resolve your queries -   / stackdevelopers  
►Follow on Instagram -   / stackdevelopers2  
►Follow on GitHub - https://github.com/stackdevelopers

#laravel10 #laravel10tutorial #laravel


Смотрите видео Laravel 10 Tutorial #4: Laravel Admin Panel | Create Route | AdminController | Correct Paths онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Stack Developers 01 Январь 1970, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 9,872 раз и оно понравилось 86 людям.