mohammad_sulaiman / dashboard_setup
A library for setting up a Laravel dashboard, creating language switch middleware, routes, controllers, and language files.
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 1
Open Issues: 0
Language:JavaScript
Requires
- php: >=8.0
README
A PHP library for setting up an admin dashboard in Laravel with language settings. This package includes middleware and routes for switching languages (language switch
).
Features
- Easily set up an admin dashboard for Laravel projects.
- Create middleware for language switching.
- Generate routes for language switching.
- Automatically create language files.
Installation
Install the package using Composer:
composer require mohammad_sulaiman/dashboard_setup php vendor/mohammad_sulaiman/dashboard_setup/src/install.php
During installation, you will be prompted to provide two inputs:
- Source Directory (Optional): If you want to include a custom dashboard provided by the user.
- Laravel Project Path (Required): The path to your Laravel project.
Ensure that the Laravel project path is correct, as it is mandatory for the setup process.
Visit on Packagist
You can find the package on Packagist at the following link:
Dashboard Setup for Laravel on Packagist
Usage
-
After installation, the package will automatically configure the following:
- Middleware: For handling language switching logic.
- Routes: Adds routes for managing language switches.
- Language Files: Initializes the language files in the
resources/lang
directory.
-
To customize or update the settings, modify the configuration in the
src
directory.
License
This package is licensed under the MIT License.