Download the PHP package black-paradise/core-admin without Composer
On this page you can find all versions of the php package black-paradise/core-admin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package core-admin
Black-Paradise/Laravel-Admin
Introduction
Black-Paradise/Laravel-Admin is a Laravel-based admin panel that is generated based on a configuration file. The configuration defines models and their respective fields, which are then used to create the admin panel structure.
Installation
To install the package, run the following command:
Then, run the install command to generate the necessary files:
Configuration
The package uses a configuration file located at config/bpadmin.php. This file contains:
title– The name of the admin panel.userEntity– The user model used for authentication.languages– Supported languages.entities– List of models with settings for fields, pagination, validation, and display options.menu– The structure of the admin panel menu.
Example Configuration
Generated Classes
Each model defined in the configuration file gets a corresponding class generated in App\BPAdmin:
Inputs
The package includes various input types for form fields in the admin panel. These inputs determine how data is displayed and edited.
Available Input Types
BelongsTo– HandlesBelongsTorelationships.BelongsToMany– HandlesBelongsToManyrelationships.boolean– Checkbox for boolean values.editor– Rich text editor input.email– Input field for email addresses.file– File upload field.float– Input field for floating-point numbers.hidden– Hidden input field.integer– Input field for integer numbers.hashed– Password input field.string– Standard text input field.submit– Submit button for forms.text– Multi-line text area.translatableEditor– Rich text editor with translation support.translatable– Text input with translation support.
Console Commands
bpadmin:translation-generate
Description
Generates translation files for all entities defined in bpadmin.entities.
Usage
How It Works
- Creates translation files in
resource/lang/vendor/bpadmin/en/. - Extracts fillable fields from the model using
TypeFromTable. - Generates a PHP array with translations where field names are capitalized.
- Saves the translations in
{model}.phpfiles.
Example Output File (resource/lang/vendor/bpadmin/en/users.php)
Roadmap
- Support for custom components.
- Advanced validation handling.
- Additional customization options for pages.
License
This package is open-source and licensed under the MIT license.
Support
If you would like to support this package, you can do so on Patreon.