Skip to content

kirandeep0036/laravel

Repository files navigation

Laravel Admin Dashboard

PHP Version Require Laravel Bootstrap CSS3 HTML5 JavaScript MySQL NPM

💻 About Project

I created Laravel 8 admin dashboard project from scratch. If you are a beginner and want to learn Laravel projects from scratch, this is a good sample project for you. Apart from that I used BootStrap 5 for a responsive view. I tried to cover below mentioned topic to of Laravel 8:

💡 As you know Laravel 8 has a PHP MVC framework so I tried to cover MVC structure with login and register user modules. You will learn about:

▶ Laravel Routing with middleware and parameters

▶ Laravel page layout

▶ Laravel sub-view page and call them

▶ How to extend the layout and pass parameters to the layout

▶ How to call view blades and pass data to view blade

▶ How to use PHP code in blade files

▶ How to redirect to route with parameters

▶ How to send the response message

▶ How to set validations

▶ How to create middleware and use it

▶ How to handle error messages on blade files

▶ How to use admin login and normal user login

⭐ How to clone and set up Laravel project from GitHub

⪢ Step 1

Firstly, You have to copy the GitHub repository URL: https://github.com/Kirandeep0036/laravel.git It's a public repo, you don't need any credentials to download the project screenshot(https://tinyurl.com/2d25da7o)

⪢ Step 2

Next, open the project in your local editor then open the .env file and put your database details: DB_CONNECTION=mysql

DB_HOST=127.0.0.1

DB_PORT=3306

DB_DATABASE=

DB_USERNAME=

DB_PASSWORD=

⪢ Step 3

Then open your project editor terminal and the run command npm npm install and wait to complete it.

⪢ Step 4

Once you have done with your my sql details the run php artisan migrate command in your terminal. It will create a user table in your database. Then run command php artisan serve to run the project. Laravel local server URL: http://localhost:8000/

NOTE You have to set role admin in the database in the users table that guest by default for each record. After that, Please use this user to login into the dashboard.

⭐ Some other useful commands of Laravel:

✅ To clear the cache: php artisan optimize

✅ Make new controller: php artisan make:controller name_of_controller

✅ Make new middleware: php artisan make:middleware name_of_middleware

✅ Make new model: php artisan make:model name_of_model