vadiasov/genres-admin

The Package serves plain genres (music e.g.)

1.2.0 2018-03-13 13:44 UTC

This package is not auto-updated.

Last update: 2024-05-12 03:27:52 UTC


README

This package creates DB genres (music genres). The packages serves CRUD pages of genres in administrative panel.

It includes a ServiceProvider to register the package and attach it to the output. It includes migrations to create DB genres.

Installation

Add the package to root composer.json:

"require": {
        ...
        "vadiasov/genres-admin": "^1.0.0",
  }

Then run:

composer update

Register package in config/app.php

'providers' => [
        /*
         * Package Service Providers...
         */
        Vadiasov\GenresAdmin\GenresServiceProvider::class,

Create model:

php artisan make:model Genre

Publish migrations and seeds. Run:

php artisan vendor:publish

and enter appropriate number of this package (see terminal output after last command).

Migrate:

php artisan migrate

Seed

php artisan db:seed --class=GenresSeeder

Routes

The routes are in the package:

admin/genres
admin/genres/create
admin/genres/{id}/edit
admin/genres/{id}/delete