| Package Data | |
|---|---|
| Maintainer Username: | benjaminchen |
| Maintainer Contact: | benjaminchen.c@gmail.com (benjamin) |
| Package Create Date: | 2017-02-08 |
| Package Last Update: | 2017-02-10 |
| Language: | HTML |
| License: | MIT |
| Last Refreshed: | 2025-11-03 15:05:02 |
| Package Statistics | |
|---|---|
| Total Downloads: | 27 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 0 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
This is a simple admin package for Laravel.
composer require benjamin-chen/laravel-admin-package
Add AdminServiceProvider to the array of Service Providers in file config/app.php:
'providers' => [
/*
* Laravel Framework Service Providers...
*/
Illuminate\Auth\AuthServiceProvider::class,
// ... other providers
Illuminate\View\ViewServiceProvider::class,
BenjaminChen\Admin\AdminServiceProvider::class,
php artisan vendor:publish --tag=public
php artisan vendor:publish --tag="migrations"
php artisan vendor:publish --tag="config"
Create "upload" folder in your public path and change mode 777 to "upload" folder.
public $columns = [
'input' => [
'name' => [
'type' => 'text',
'placeholder' => 'Please input your name',
],
'email' => [
'type' => 'email'
],
],
'select' => [
'sex' => [
'option' => [
'Female' => 0,
'Male' => 1,
],
]
],
'textarea' => [
'blog' => [
'rows' => 5,
]
],
'file' => [
'photo' => [
'type' => 'image',
]
],
'inputValidator' => [
'name' => 'required',
'email' => 'required|email|unique:users',
'sex' => 'required',
]
];