Admin Packages

The Playground Admin provides a user and setting management system that may be consumed by a Laravel application or served as JSON from a Laravel based API or Resource.

playground-admin

Provides the models for playground-admin-resource.

Configuration

You can publish the configuration file with:

php artisan vendor:publish --provider="Playground\Admin\ServiceProvider" --tag="playground-config"

Environment Variables

Migrations

All migrations are disabled by default.

See the contents of the published config file: database/migrations - NOTE: There are 15 tables that will be created, they do have indexes and unique constraints defined; however, this release does not have the foreign key constraint migrations included at this time.

  • If you do not wish to publish the migrations to your application, you may use the Environment Variable: PLAYGROUND_ADMIN_LOAD_MIGRATIONS in your .env.

PLAYGROUND_ADMIN_LOAD_MIGRATIONS

Config: playground-admin-resource.middleware.default

Type: bool

Default: false

Description: The loading option for migrations does not take effect if the migrations have been published to your app. The control for loading is handled in the package ServiceProvider.

You can publish the migrations file with:

php artisan vendor:publish --provider="Playground\Admin\ServiceProvider" --tag="playground-migrations"

Installation

NOTE: This package is required by playground-admin-api and playground-admin-resource.

  • playground-admin-api has not been published.

composer require gammamatrix/playground-admin

playground-admin-resource

Provides an API and a Laravel Blade UI.