weiliang / sleepingowl
Administrative interface builder for Laravel.提供更好的中文支持..
Installs: 15
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 217
Language:JavaScript
Requires
- php: >=5.5.9
- davejamesmiller/laravel-breadcrumbs: ^3.0
- doctrine/dbal: ~2.3
- erusev/parsedown: 1.*
- illuminate/support: 5.*
- kodicms/laravel-assets: 0.*
- kodicomponents/navigation: 0.*
- kodicomponents/support: 0.*
- laravelcollective/html: 5.*
Requires (Dev)
- mockery/mockery: ^0.9.4
- phpunit/phpunit: ~4.1
- dev-development
- 5.1
- 4.41.8
- 4.40.8
- 4.40.1
- 4.40.0
- 4.39.140-beta
- 4.37.137-beta
- 4.37.136-beta
- 4.37.135-beta
- 4.36.133-beta
- 4.33.129-beta
- 4.33.128-beta
- 4.32.121-beta
- 4.30.116-beta
- 4.30.110-beta
- 4.24.108-beta
- 4.23.107-beta
- 4.23.106-beta
- 4.23.102-beta
- 4.23.101-beta
- 4.22.96-beta
- 4.21.94-beta
- 4.19.92-beta
- 4.18.92-beta
- 4.17.90-beta
- 4.17.88-beta
- 4.17.87-beta
- 4.17.86-beta
- 4.16.86-beta
- 4.15.84-beta
- 4.15.83-beta
- 4.15.80-beta
- 4.14.74-beta
- 4.14.73-beta
- 4.14.72-beta
- 4.14.64-beta
- 4.13.64-beta
- 4.12.60-beta
- 4.12.57-beta
- 4.12.55-beta
- 4.12.48-beta
- 4.12.45-beta
- 4.10.41-beta
- 4.10.40-beta
- 4.9.35-beta
- 4.8.35-beta
- 4.7.33-beta
- 4.5.30-beta
- 4.5.26-beta
- 4.5.25-beta
- 4.4.23-beta
- 4.3.21-beta
- 4.0.18-beta
- 4.0.16-beta
- 4.0.10-beta
- 4.0.1-beta
- 4.0.0-beta
- 3.0.0-beta
- 2.0.43
- 2.0.42
- 2.0.41
- 2.0.40
- 2.0.39
- 2.0.38
- 2.0.37
- 2.0.36
- 2.0.35
- 2.0.34
- 2.0.33
- 2.0.32
- 2.0.31
- 2.0.30
- 2.0.29
- 2.0.28
- 2.0.27
- 2.0.26
- 2.0.25
- 2.0.24
- 2.0.23
- 2.0.22
- 2.0.21
- 2.0.20
- 2.0.19
- 2.0.18
- 2.0.17
- 2.0.16
- 2.0.15
- 2.0.14
- 2.0.13
- 2.0.12
- 2.0.11
- 2.0.10
- 2.0.9
- 2.0.8
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.3.28
- 1.3.27
- 1.3.26
- 1.3.25
- 1.3.24
- 1.3.23
- 1.3.22
- 1.3.21
- 1.3.20
- 1.3.19
- 1.3.18
- 1.3.17
- 1.3.16
- 1.3.15
- 1.3.14
- 1.3.13
- 1.3.12
- 1.3.11
- 1.3.10
- 1.3.9
- 1.3.8
- 1.3.7
- 1.3.6
- 1.3.5
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.11
- 1.1.10
- 1.1.9
- 1.1.8
- 1.1.7
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 0.1
- dev-pr/144
This package is not auto-updated.
Last update: 2024-12-21 20:36:07 UTC
README
Laravel 5.2 后台管理模块
Note: 这是开发分支,如果你需要稳定版本,请检出 master branch.
这是一个管理界面生成器,很简单的接入在Laravel.
使用到的bower包:
- jquery
- bootstrap
- bootbox
- datetimepicker
- fontawesome
- moment
- nestable
- noty
- ckeditor
- Sortable
- select2
- flow.js
- ekko-lightbox
- metisMenu
- datatables
- startbootstrap-sb-admin-2
安装
- Require this package in your composer.json and run composer update:
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.2.*",
...
"laravelrus/sleepingowl": "4.*@dev"
},
Or composer require laravelrus/sleepingowl:4.*@dev
- After composer update, insert service provider
SleepingOwl\Admin\Providers\SleepingOwlServiceProvider::class,
beforeApplication Service Providers...
to theconfig/app.php
Example
... /* * SleepingOwl Service Provider */ SleepingOwl\Admin\Providers\SleepingOwlServiceProvider::class, /* * Application Service Providers... */ App\Providers\AppServiceProvider::class, ...
-
Run this command in the terminal (if you want to know more about what exactly this command does, see install command documentation):
$ php artisan sleepingowl:install
Laravel 5.1 usage
SleepingOwl are compatible with Laravel 5.1. But full performance is not guaranteed.
Installation
- See
Installation
section of Laravel 5.2 - After all actions: open
config/sleeping_owl.php
and change'middleware' => ['web']
to'middleware' => []
Upgrade from 4.18.x to 4.19.x
HtmlAttributes
Class has been moved to composer package kodicomponents\support
for using in other projects and methods have been changed for more compatibility.
setAttribute
->setHtmlAttribute
setAttributes
->setHtmlAttributes
getAttribute
->getHtmlAttribute
getAttributes
->getHtmlAttributes
hasAttribute
->hasHtmlAttribute
replaceAttribute
->replaceHtmlAttribute
removeAttribute
->removeHtmlAttribute
clearAttributes
->clearHtmlAttributes
hasClass
->hasClassProperty
Navigation
Navigation classes have been move to composer package kodicomponents\navigation
for using in other projects.
Authentication
By default, admin module uses Laravel authentication.
If you want to use auth, you can run artisan command php artisan make:auth
(https://laravel.com/docs/5.2/authentication) and append middleware auth
to config/sleeping_owl.php
Supporting of old authentication
If you want to migrate from an older version you can use old auth.
Steps:
- Add new user provider in
config/auth.php
'providers' => [ 'users' => [ 'driver' => 'eloquent', 'model' => App\User::class, ], 'administrators' => [ 'driver' => 'eloquent', 'model' => SleepingOwl\Admin\Auth\Administrator::class, ], ],
- Add new guards or change existing in
config/auth.php
'guards' => [ 'web' => [ 'driver' => 'session', 'provider' => 'administrators', // change existing provider ], // or add new 'admin' => [ 'driver' => 'session', 'provider' => 'administrators', ], ],
- Setting up middleware
By default auth
middleware use default guard, selected in config/auth.php
'defaults' => [ 'guard' => 'web', <- default ... ],
You can change default guard to admin
or change middleware in config/sleeping_owl.php
to
'middleware' => ['web', 'auth:admin'],
Demo project
You can download the demo project at https://github.com/SleepingOwlAdmin/demo
Documentation
- Russian
- English
Copyright and License
Admin was written by Sleeping Owl for the Laravel framework and is released under the MIT License. See the LICENSE file for details.