Package Data | |
---|---|
Maintainer Username: | selfrelianceme |
Maintainer Contact: | vladwebkit@gmail.com (Vlad Kit) |
Package Create Date: | 2017-07-02 |
Package Last Update: | 2019-03-07 |
Language: | JavaScript |
License: | MIT |
Last Refreshed: | 2024-04-26 03:09:14 |
Package Statistics | |
---|---|
Total Downloads: | 291 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 1 |
Total Open Issues: | 0 |
adminamazing - a package admin with basic roles and basic packages
Install via composer
composer require selfreliance/adminamazing
Config, Styles
php artisan vendor:publish --provider="Selfreliance\Adminamazing\AdminAmazingServiceProvider" --force
Edit model Kernel (App\Http\Kernel)
Add to $routeMiddleware
'CheckAccess' => \Selfreliance\Adminamazing\Middleware\CheckAccess::class,
Blocks need to be created in __construct()
\Blocks::register('name', function(){
return 'test';
}); // with simple function
\Blocks::register('name', 'className@nameFunction'); // with function from controller/class
Create the 'blocks' parameter in the config file
'blocks' => [
...
'nameBlock:directory',
]
\Blocks::get('name'); // get block by name
\Blocks::all(); // get all blocks
@push('scripts')
// any your scripts
@endpush
@push('display')
// any for display
@endpush