Admin panel for laravel projects.
- Add the repository to your composer.json file:
"repositories": [
{
"type": "vcs",
"url": "https://github.com/PixelBoii/Vague.git"
}
],
- Require the package using composer:
composer require pixelboii/vague
- Publish the required files:
php artisan vendor:install
- You're done! The app should now be accessible through the
/vague
route.
- Add Vague files for the models you want to manage:
php artisan vague:resource User
- Register the vague files in your
config/vague.php
file:
...
'resources' => [
App\Vague\User::class,
],
...
If you want to use the permissions system, you'll need to add the HasPermissions
trait to your user model:
use PixelBoii\Vague\Traits\HasPermissions;
The permissions feature is enabled by default in the config file but can be disabled by removing it from the features
array.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.