gammamatrix/playground-admin

Playground: Provide the Admin models for a Playground Laravel application.

dev-develop / 73.x-dev 2024-07-08 17:54 UTC

This package is auto-updated.

Last update: 2025-03-08 19:15:09 UTC


README

Playground CI Workflow Test Coverage PHPStan Level 9

The Playground Admin is a package for Laravel applications.

This application provides the models to use Playground Admin, a site administration tool.

Read more on using Playground Admin at Read the Docs: Playground Documentation.

Installation

You can install the package via composer:

composer require gammamatrix/playground-admin

artisan:about

Playground Admin provides information in the artisan about command.

Configuration

Migrations are disabled by default. This package may sometimes be installed where another system handles the migrations.

See the contents of the published config file: config/playground-admin.php

You can publish the config file with:

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

Environment Variables

env() config()
PLAYGROUND_ADMIN_LOAD_MIGRATIONS playground-admin.load.migrations
  • The loading option for migrations does not take effect if the migrations have been exported to your app. The control for loading is handled in the package ServiceProvider.

Models

This package includes factories, models and migrations for:

Migrations

All migrations are disabled by default.

See the contents of the published config file: database/migrations

  • NOTE: There is 1 table that will be created.

You can publish the migrations file with:

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

Cloc

composer cloc
➜  playground-admin git:(develop) composer cloc
> cloc --exclude-dir=output,vendor .
      30 text files.
      22 unique files.
       9 files ignored.

github.com/AlDanial/cloc v 1.98  T=0.04 s (492.7 files/s, 37173.0 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
PHP                             14            103            153            708
YAML                             1              5              0            275
XML                              3              0              3            222
JSON                             1              0              0             68
Markdown                         2             39              1             68
INI                              1              3              0             12
-------------------------------------------------------------------------------
SUM:                            22            150            157           1353
-------------------------------------------------------------------------------

PHPStan

Tests at level 9 on:

  • config/
  • database/
  • src/
  • tests/Feature/
  • tests/Unit/
composer analyse

Coding Standards

composer format

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.