13/03
2018
Wallogit.com
2017 © Pedro Peláez
The Package serves plain genres (music e.g.)
This package creates DB genres (music genres). The packages serves CRUD pages of genres in administrative panel., (*1)
It includes a ServiceProvider to register the package and attach it to the output. It includes migrations to create DB genres., (*2)
Add the package to root composer.json:, (*3)
"require": {
...
"vadiasov/genres-admin": "^1.0.0",
}
Then run:, (*4)
composer update
Register package in config/app.php, (*5)
'providers' => [
/*
* Package Service Providers...
*/
Vadiasov\GenresAdmin\GenresServiceProvider::class,
Create model:, (*6)
php artisan make:model Genre
Publish migrations and seeds. Run:, (*7)
php artisan vendor:publish
and enter appropriate number of this package (see terminal output after last command)., (*8)
Migrate:, (*9)
php artisan migrate
Seed, (*10)
php artisan db:seed --class=GenresSeeder
The routes are in the package:, (*11)
admin/genres
admin/genres/create
admin/genres/{id}/edit
admin/genres/{id}/delete