Installation Last updated: 2025-01-21
Installation Guide for Dash Package
To install the Dash package, follow these steps:
1. Download or Install Your Laravel Project
If you don't have a Laravel project yet, create one using the following command:
composer create-project laravel/laravel example-app
2. Install the Dash Package
Run the following command to install the Dash package:
composer require phpanonymous/dash
3. Set Up the Dashboard
Run the following command to automatically set up and prepare your dashboard. This will also add a fake admin account, groups, and roles:
php artisan dash:setup
4. Register the Service Provider
Add the following line to the providers
array in config/app.php
:
App\Providers\DashServiceProvider::class,
5. Run the Development Server
Start the Laravel development server using the following command:
php artisan serve
6. Access the Dashboard
Open your browser and go to the following URL to access the dashboard:
http://127.0.0.1/dash
7. Log In with the Fake Account
Use the following credentials to log in to the dashboard:
- Email:
[email protected]
- Password:
123456
8. Configure Storage (Optional)
If you're using local storage, it's recommended to update your .env
file as follows:
FILESYSTEM_DRIVER=public
Then, run the following command to create a symbolic link for storage:
php artisan storage:link
9. You're Ready to Go!
Everything is set up, and you're now ready to use the Dash package.
Notes
- Ensure your Laravel project meets the requirements for the Dash package.
- If you encounter any issues, refer to the official documentation for troubleshooting.
Example .env
Configuration
Here’s an example of how your .env
file should look:
FILESYSTEM_DRIVER=public
Commands Summary
Command | Description |
---|---|
composer create-project laravel/laravel example-app | Create a new Laravel project. |
composer require phpanonymous/dash | Install the Dash package. |
php artisan dash:setup | Set up the dashboard automatically. |
php artisan serve | Start the development server. |
php artisan storage:link | Create a storage symbolic link. |
Final Notes
- Make sure your server is running before accessing the dashboard.
- If you need further assistance, feel free to reach out to the support team.