2017 © Pedro Peláez
 

library laravel-admin-package

image

benjamin-chen/laravel-admin-package

  • Friday, February 10, 2017
  • by benjaminchen
  • Repository
  • 1 Watchers
  • 0 Stars
  • 14 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Laravel Admin Package

This is a simple admin package for Laravel., (*1)

Composer

composer require benjamin-chen/laravel-admin-package

Setting

Add AdminServiceProvider into app config

Add AdminServiceProvider to the array of Service Providers in file config/app.php:, (*2)

'providers' => [

        /*
         * Laravel Framework Service Providers...
         */
        Illuminate\Auth\AuthServiceProvider::class,
        // ... other providers
        Illuminate\View\ViewServiceProvider::class,
        BenjaminChen\Admin\AdminServiceProvider::class,

Public Assets

php artisan vendor:publish --tag=public

Public Migrations

php artisan vendor:publish --tag="migrations"

Public config

php artisan vendor:publish --tag="config"

Create upload folder in public path

Create "upload" folder in your public path and change mode 777 to "upload" folder., (*3)

Add public variable in your model class

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',
        ]
];

The Versions

10/02 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

by benjamin

10/02 2017

v0.1.1

0.1.1.0

  Sources   Download

MIT

The Requires

 

by benjamin

08/02 2017

v0.1.0

0.1.0.0

  Sources   Download

MIT

The Requires

 

by benjamin