The Laravel Admin Dashboard is a web-based application that serves as a starting point for an Admin Dashboard panel, complete with User Management and Roles Permissions.
- Constructed using Laravel 10
- Incorporates Bootstrap 5.3
- Features an Authentication System
- Includes User Management with a Block/Unblock System
- Equipped with a Roles Permissions System
- Allows User Profile Viewing and Updating
- Enables User Password Changes
- More features to be added soon
# clone the repo
$ git clone https://github.com/subrata6630/laravel-dashboard my-project
# go into app's directory
$ cd my-project
# install app's dependencies
$ composer install
# install app's dependencies
$ npm install
# install app's dependencies
$ npm run dev
# create database
$ touch database/database.sqliteCopy file ".env.example", and change its name to ".env". Then in file ".env" replace this database configuration:
- DB_CONNECTION=mysql
- DB_HOST=127.0.0.1
- DB_PORT=3306
- DB_DATABASE=laravel
- DB_USERNAME=root
- DB_PASSWORD=
To this:
- DB_CONNECTION=sqlite
- DB_DATABASE=/path_to_your_project/database/database.sqlite
-
Install PostgreSQL
-
Create user
$ sudo -u postgres createuser --interactive
enter name of role to add: laravel
shall the new role be a superuser (y/n) n
shall the new role be allowed to create database (y/n) n
shall the new role be allowed to create more new roles (y/n) n- Set user password
$ sudo -u postgres psql
postgres= ALTER USER laravel WITH ENCRYPTED PASSWORD 'password';
postgres= \q- Create database
$ sudo -u postgres createdb laravel- Copy file ".env.example", and change its name to ".env". Then in file ".env" replace this database configuration:
- DB_CONNECTION=mysql
- DB_HOST=127.0.0.1
- DB_PORT=3306
- DB_DATABASE=laravel
- DB_USERNAME=root
- DB_PASSWORD=
To this:
- DB_CONNECTION=pgsql
- DB_HOST=127.0.0.1
- DB_PORT=5432
- DB_DATABASE=laravel
- DB_USERNAME=laravel
- DB_PASSWORD=password
Copy file ".env.example", and change its name to ".env". Then in file ".env" complete this database configuration:
- DB_CONNECTION=mysql
- DB_HOST=127.0.0.1
- DB_PORT=3306
- DB_DATABASE=laravel
- DB_USERNAME=root
- DB_PASSWORD=
If your project url looks like: example.com/sub-folder Then go to
my-project/.envAnd modify this line:
- APP_URL =
To make it look like this:
- APP_URL = http://example.com/sub-folder
# in your app directory
# generate laravel APP_KEY
$ php artisan key:generate
# run database migration and seed
$ php artisan migrate:refresh --seed
# generate mixing
$ npm run dev
# and repeat generate mixing
$ npm run dev# start local server
$ php artisan serve
# test
$ php vendor/bin/phpunitOpen your browser with address: localhost:8000
Click "Login" on sidebar menu and log in with credentials:
- E-mail: admin@admin.com
- Password: password
This user has roles: user and admin
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.
In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via taylor@laravel.com. All security vulnerabilities will be promptly addressed.
The Laravel framework is open-sourced software licensed under the MIT license.