Sample Admin Template using Laravel, Breeze, Spatie, Tailwind Css (Dashboard Template) Intended to eliminate repititive tasks of creating admin with user, role & permission and some basic configurations to enable fast development of Laravel web apps.
Duplicate the .env.example
File
In the project root directory, create a copy of the .env.example
file and rename it to .env
.
Configure Database Settings
Open the newly created .env
file and update the database configuration with your preferred settings. For example:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=sadmin
DB_USERNAME=root
DB_PASSWORD=
Install Composer Dependencies
Run the following command to install PHP dependencies:
composer install
Generate Application Key
Generate a new application key using the command:
php artisan key:generate
Run Migrations and Seed the Database
Set up the database by running migrations and seeding:
php artisan migrate
php artisan migrate:fresh --seed
Install Node.js Dependencies
Install JavaScript dependencies with:
npm install
Build Assets
Compile and optimize assets using:
npm run build
Start the Development Server
Launch the development server with:
php artisan serve
Use Credintials to test
Use this default username and password respectively to login
[email protected]
password
(optional) you can use /admin to explore the integrated prebuilt Tailwind Dashboard and its components
Check out the setup video for the "sadmin" template here: