Playground Base Package
This is the base package for Playground.
This package provides model handling for Laravel packages.
Playground allows using Laravel ordered UUIDs for primary keys.
The configuration in Playground and subpackages permits defining the user model, table and primary key type: increments or uuid.
Packages are compatible and tested with and without: middleware, roles, policies, privileges, Sanctum…
playground
Provides the base system for Playground under Laravel.
artisan about for playground
Package Information
- Packagist
- Source on GitHub
Environment Variables
PLAYGROUND_PACKAGESConfig:
playground.packagesType:
stringExpects a CSV string. Spaces between packages is acceptable.Default:
playgroundExample:
playground,playground-auth,playground-blade,playground-http,playground-login-blade,playground-site-blade,playground-admin-resource,playground-cms-resource,playground-testExample:
playground, playground-auth, playground-blade ,playground-http, playground-login-blade, playground-site-blade, playground-admin-resource, playground-cms-resource, playground-testDescription: You may optionally include Playground based packages in this variable. If included, and using a Blade UI and the Sitemap feature, these packages will have their respective sitemaps rendered.
NOTE: See
PLAYGROUND_AUTH_PACKAGESfor loading required security privileges for relevant packages.PLAYGROUND_DATE_SQLConfig:
playground.dateType:
stringDefault:
Y-m-d H:i:sDescription: This date format is only necessary when the date needs to be formatted for database insertion; otherwise, Carbon handles the date.
################################################################################
#
# Playground
#
################################################################################
#
PLAYGROUND_PACKAGES=playground,playground-auth,playground-blade,playground-http,playground-login-blade,playground-site-blade,playground-admin-resource,playground-cms-resource,playground-test
#
PLAYGROUND_ADMIN_LOAD_MIGRATIONS=true
#
PLAYGROUND_AUTH_PACKAGES=playground-admin-resource,playground-cms-resource,playground-login-blade,playground-site-blade
#
PLAYGROUND_CMS_LOAD_MIGRATIONS=true
#
PLAYGROUND_AUTH_DEBUG=true
Installation
NOTE: Typically, this package is automatically included when using other Playground packages.
It would only need to be installed if creating a new Playground based package.
composer require gammamatrix/playground