2017 © Pedro Peláez
 

library laravel-admin

laravel admin

image

woodfish/laravel-admin

laravel admin

  • Saturday, February 25, 2017
  • by woodfish
  • Repository
  • 1 Watchers
  • 0 Stars
  • 231 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1122 Forks
  • 0 Open issues
  • 31 Versions
  • 0 % Grown

The README.md

laravel-admin

Build Status StyleCI Scrutinizer Code Quality Packagist Total Downloads, (*1)

laravel-admin is administrative interface builder for laravel which can help you build CRUD backends just with few lines of code., (*2)

Demo use username/password:admin/admin, (*3)

Inspired by SleepingOwlAdmin and rapyd-laravel., (*4)

中文文档, (*5)

Screenshots

laravel-admin, (*6)

Installation

First, install laravel, and make sure that the database connection settings are correct., (*7)

Laravel 5.2
composer require encore/laravel-admin "dev-master"

Laravel 5.3
composer require encore/laravel-admin "1.3.x-dev"

Laravel 5.1
composer require encore/laravel-admin "1.1.x-dev"

Inconfig/app.phpaddServiceProvider:, (*8)

Encore\Admin\Providers\AdminServiceProvider::class

Then run these commands to finnish install:, (*9)

php artisan vendor:publish --tag=laravel-admin
php artisan admin:install

open http://localhost/admin/ in browser,use username admin and password admin to login., (*10)

Default Settings

The file in config/admin.php contains an array of settings, you can find the default settings in there., (*11)

Documentation

Directory structure

After install,you can find directoryapp/Admin,and then most of our develop work is under this directory., (*12)


app/Admin ├── Controllers │   ├── ExampleController.php │   └── HomeController.php └── routes.php

app/Admin/routes.php is used to define routes,for more detail please read routes., (*13)

The app/Admin/Controllers directory is used to store all the controllers, The HomeController.php file under this directory is used to handle home request of admin,The ExampleController.php file is a controller example., (*14)

Quick start

We use users table come with Laravel for example,the structure of table is:, (*15)

CREATE TABLE `users` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `password` varchar(60) COLLATE utf8_unicode_ci NOT NULL,
  `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  UNIQUE KEY `users_email_unique` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci

And the model for this table is App\User.php, (*16)

You can follow these steps to setup CURD interfaces of table users:, (*17)

1.add controller

Use the following command to create a controller for App\User model, (*18)

php artisan admin:make UserController --model=App\\User

The above command will create the controller in app/Admin/Controllers/UserController.php., (*19)

2.add route

Add a route in app/Admin/routes.php:, (*20)

$router->resource('users', UserController::class);

3.add left menu item

Open http://localhost:8000/admin/auth/menu, add menu link and refresh the page, then you can find a link item in left menu bar., (*21)

4.build grid and form

The rest needs to be done is open app/Admin/Contollers/UserController.php, find form() and grid() method and write few lines of code with model-grid and model-form,for more detail, please read model-grid and model-form., (*22)

Other

laravel-admin based on following plugins or services:, (*23)

License

laravel-admin is licensed under The MIT License (MIT)., (*24)

The Versions

31/10 2016
21/10 2016

1.1.x-dev

1.1.9999999.9999999-dev https://github.com/z-song/laravel-admin

laravel admin

  Sources   Download

MIT

The Requires

 

The Development Requires

by zsong

laravel form grid chart admin

21/10 2016
31/03 2016

1.2.x-dev

1.2.9999999.9999999-dev https://github.com/z-song/laravel-admin

laravel admin

  Sources   Download

MIT

The Requires

 

by zsong

laravel form grid chart admin

08/03 2016

1.2.5

1.2.5.0 https://github.com/z-song/laravel-admin

laravel admin

  Sources   Download

MIT

The Requires

 

by zsong

laravel form grid chart admin

08/03 2016

1.1.5

1.1.5.0 https://github.com/z-song/laravel-admin

laravel admin

  Sources   Download

MIT

The Requires

 

by zsong

laravel form grid chart admin

03/03 2016

1.2.4

1.2.4.0 https://github.com/z-song/laravel-admin

laravel admin

  Sources   Download

MIT

The Requires

 

by zsong

laravel form grid chart admin

03/03 2016

1.1.4

1.1.4.0 https://github.com/z-song/laravel-admin

laravel admin

  Sources   Download

MIT

The Requires

 

by zsong

laravel form grid chart admin

22/02 2016

1.2.3

1.2.3.0 https://github.com/z-song/laravel-admin

laravel admin

  Sources   Download

MIT

The Requires

 

by zsong

laravel form grid chart admin

22/02 2016

1.1.3

1.1.3.0 https://github.com/z-song/laravel-admin

laravel admin

  Sources   Download

MIT

The Requires

 

by zsong

laravel form grid chart admin

02/02 2016

1.1.2

1.1.2.0 https://github.com/z-song/laravel-admin

laravel admin

  Sources   Download

MIT

The Requires

 

by zsong

laravel form grid chart admin

02/02 2016

1.2.2

1.2.2.0 https://github.com/z-song/laravel-admin

laravel admin

  Sources   Download

MIT

The Requires

 

by zsong

laravel form grid chart admin

01/02 2016

1.1.1

1.1.1.0 https://github.com/z-song/laravel-admin

laravel admin

  Sources   Download

MIT

The Requires

 

by zsong

laravel form grid chart admin

01/02 2016

1.2.1

1.2.1.0 https://github.com/z-song/laravel-admin

laravel admin

  Sources   Download

MIT

The Requires

 

by zsong

laravel form grid chart admin

31/01 2016

1.2.0

1.2.0.0 https://github.com/z-song/laravel-admin

laravel admin

  Sources   Download

MIT

The Requires

 

by zsong

laravel form grid chart admin

30/01 2016

1.1.0

1.1.0.0 https://github.com/z-song/laravel-admin

laravel admin

  Sources   Download

MIT

The Requires

 

by zsong

laravel form grid chart admin