2017 © Pedro Peláez
 

library voyager

Based on tcg/voyager:A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

image

pheye/voyager

Based on tcg/voyager:A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  • Tuesday, July 24, 2018
  • by pheye
  • Repository
  • 0 Watchers
  • 0 Stars
  • 714 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1478 Forks
  • 0 Open issues
  • 57 Versions
  • 86 % Grown

The README.md

DEPRECATED!!!

Laravel官方出了Nova管理后台以后,经过测试,在设计上远远优于Voyager。并且Voyager中长期得不到解决的问题,在Nova那边已经解决了。因此,改为使用Nova作为管理后台,本包不再维护。

改造说明

Voyager是个很优秀的项目,然而却有一些问题限制了它的使用:, (*1)

  • 仍然是jQuery+前后端混合那套,前端功能很难做得复杂
  • BREAD控制器不支持搜索、批量操作等功能
  • CMS方面,编辑器功能过弱,而在SEO等相关设置上又过于繁琐
  • 提示语言没有使用多语言机制
  • BREAD开启Server-Side时,不支持排序
  • 存在许多很初级的BUG:比如multiple images类型,只能增加不能删除,查看详情时也不能正常显示等等

等待官方修复太慢,同时按照目前发展趋势来看,与自己的期望还是有一些距离,于是自己做整改。解决上述问题。, (*2)

具体修复问题:, (*3)

  • Voyager::settings模块增加Boolean Type,增加voyager::settings <key>/ voyager::settings <name> <key> <type> -s命令获取和配置参数
  • dropdown类型:如果使用了外键,比如users表的role_id指向Role,则User Model必须存在public function role_id(),但是一般我们都使用的是public function role(),通过在detailsrelationship下面增加method: "role"即可覆盖默认值。
  • Number类型:增加"step: 0.01" 参数,以支持小数点的编辑。
  • Textarea类型:支持JSON格式的处理,当数据库字段类型为JSON,并且在Laravel中设置protected $casts=['content' => 'json']这样的处理时,Voyager会编辑时会报错。通过在选项中增加{"json": true},即可支持JSON数据的直接编辑。
  • 前端支持vue,并通过webpack打包管理
  • 生成权限、策略菜单

, (*4)

Voyager - The Missing Laravel Admin

官方文档: https://the-control-group.github.io/voyager/, (*5)

常用操作表: https://voyager-cheatsheet.ulties.com/, (*6)


Laravel Admin & BREAD System (Browse, Read, Edit, Add, & Delete), made for Laravel 5.3., (*7)

After creating your new Laravel application you can include the Voyager package with the following command:, (*8)

composer require tcg/voyager

Next make sure to create a new database and add your database credentials to your .env file:, (*9)

DB_HOST=localhost
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret

Add the Voyager service provider to the config/app.php file in the providers array:, (*10)

'providers' => [
    // Laravel Framework Service Providers...
    //...

    // Package Service Providers
    TCG\Voyager\VoyagerServiceProvider::class,
    // ...

    // Application Service Providers
    // ...
],

Lastly, we can install voyager. You can do this either with or without dummy data. The dummy data will include 1 admin account (if no users already exists), 1 demo page, 4 demo posts, 2 categories and 7 settings., (*11)

To install Voyager without dummy simply run, (*12)

php artisan voyager:install

If you prefer installing it with dummy run, (*13)

php artisan voyager:install --with-dummy

And we're all good to go!, (*14)

Start up a local development server with php artisan serve And, visit http://localhost:8000/admin., (*15)

If you did go ahead with the dummy data, a user should have been created for you with the following login credentials:, (*16)

email: admin@admin.com
password: password, (*17)

NOTE: Please note that a dummy user is only created if there are no current users in your database., (*18)

If you did not go with the dummy user, you may wish to assign admin priveleges to an existing user. This can easily be done by running this command:, (*19)

php artisan voyager:admin your@email.com

If you did not install the dummy data and you wish to create a new admin user you can pass the --create flag, like so:, (*20)

php artisan voyager:admin your@email.com --create

And you will be prompted for the users name and password., (*21)

生成扩展菜单

默认安装的后台没有权限相关的菜单,可通过执行如下命令生成更多的菜单。 比如角色、权限、权限视图、策略, (*22)

php artisan vendor:publish --provider='TCG\Voyager\VoyagerServiceProvider' --force
composer dump-autoload
php artisan db:seed --class=ExtendVoyagerAdminSeeder

The Versions

18/02 2017

v0.10.16

0.10.16.0 https://the-control-group.github.io/voyager/

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tony Lea

laravel admin panel

15/02 2017

v0.10.15

0.10.15.0 https://the-control-group.github.io/voyager/

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tony Lea

laravel admin panel

12/02 2017

v0.10.14

0.10.14.0 https://the-control-group.github.io/voyager/

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tony Lea

laravel admin panel

05/02 2017

v0.10.13

0.10.13.0 https://the-control-group.github.io/voyager/

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tony Lea

laravel admin panel

02/02 2017

v0.10.12

0.10.12.0 https://the-control-group.github.io/voyager/

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tony Lea

laravel admin panel

18/01 2017

v0.10.11

0.10.11.0 https://the-control-group.github.io/voyager/

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tony Lea

laravel admin panel

18/01 2017

v0.10.10

0.10.10.0 https://the-control-group.github.io/voyager/

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tony Lea

laravel admin panel

12/01 2017

v0.10.9

0.10.9.0 https://the-control-group.github.io/voyager/

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tony Lea

laravel admin panel

08/01 2017

v0.10.8

0.10.8.0 https://the-control-group.github.io/voyager/

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tony Lea

laravel admin panel

29/12 2016

v0.10.7

0.10.7.0 https://the-control-group.github.io/voyager/

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tony Lea

laravel admin panel

28/12 2016

v0.10.6

0.10.6.0 https://the-control-group.github.io/voyager/

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tony Lea

laravel admin panel

20/12 2016

v0.10.5

0.10.5.0 https://the-control-group.github.io/voyager/

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tony Lea

laravel admin panel

14/12 2016

v0.10.4

0.10.4.0 https://the-control-group.github.io/voyager/

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tony Lea

laravel admin panel

13/12 2016

v0.10.3

0.10.3.0 https://the-control-group.github.io/voyager/

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tony Lea

laravel admin panel

11/12 2016

v0.10.2

0.10.2.0 https://the-control-group.github.io/voyager/

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tony Lea

laravel admin panel

10/12 2016

v0.10.1

0.10.1.0 https://the-control-group.github.io/voyager/

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tony Lea

laravel admin panel

08/12 2016

v0.10.0

0.10.0.0 https://the-control-group.github.io/voyager/

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tony Lea

laravel admin panel

07/12 2016

v0.9.35

0.9.35.0 https://the-control-group.github.io/voyager/

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tony Lea

laravel admin panel

30/11 2016

v0.9.34

0.9.34.0 https://the-control-group.github.io/voyager/

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tony Lea

laravel admin panel

29/11 2016

v0.9.33

0.9.33.0 https://the-control-group.github.io/voyager/

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tony Lea

laravel admin panel

28/11 2016

v0.9.32

0.9.32.0 https://the-control-group.github.io/voyager/

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tony Lea

laravel admin panel

27/11 2016

v0.9.31

0.9.31.0 https://the-control-group.github.io/voyager/

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tony Lea

laravel admin panel

27/11 2016

v0.9.30

0.9.30.0

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

The Requires

 

by Tony Lea

26/11 2016

v0.9.29

0.9.29.0

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

The Requires

 

by Tony Lea

26/11 2016

v0.9.28

0.9.28.0

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

The Requires

 

by Tony Lea

19/11 2016

v0.9.27

0.9.27.0

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

The Requires

 

by Tony Lea

12/11 2016

v0.9.26

0.9.26.0

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

The Requires

 

by Tony Lea

11/11 2016

v0.9.25

0.9.25.0

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

The Requires

 

by Tony Lea

11/11 2016

v0.9.24

0.9.24.0

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

The Requires

 

by Tony Lea

11/11 2016

v0.9.23

0.9.23.0

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

The Requires

 

by Tony Lea

10/11 2016

v0.9.22

0.9.22.0

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

The Requires

 

by Tony Lea

07/11 2016

v0.9.21

0.9.21.0

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

The Requires

 

by Tony Lea

07/11 2016

v0.9.20

0.9.20.0

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

The Requires

 

by Tony Lea

04/11 2016

v0.9.19

0.9.19.0

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

The Requires

 

by Tony Lea

31/10 2016

v0.9.18

0.9.18.0

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

The Requires

 

by Tony Lea

31/10 2016

v0.9.17

0.9.17.0

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

The Requires

 

by Tony Lea

31/10 2016

v0.9.16

0.9.16.0

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

The Requires

 

by Tony Lea

31/10 2016

v0.9.15

0.9.15.0

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

The Requires

 

by Tony Lea

31/10 2016

v0.9.14

0.9.14.0

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

The Requires

 

by Tony Lea

30/10 2016

v0.9.13

0.9.13.0

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

The Requires

 

by Tony Lea

28/10 2016

v0.9.12

0.9.12.0

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

The Requires

 

by Tony Lea

28/10 2016

v0.9.11

0.9.11.0

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

The Requires

 

by Tony Lea

27/10 2016

v0.9.10

0.9.10.0

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

The Requires

 

by Tony Lea

27/10 2016

v0.9.9

0.9.9.0

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

The Requires

 

by Tony Lea

27/10 2016

v0.9.8

0.9.8.0

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

The Requires

 

by Tony Lea

27/10 2016

v0.9.7

0.9.7.0

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

The Requires

 

by Tony Lea

27/10 2016

v0.9.6

0.9.6.0

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

The Requires

 

by Tony Lea

27/10 2016

v0.9.5

0.9.5.0

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

The Requires

 

by Tony Lea

27/10 2016

v0.9.4

0.9.4.0

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

The Requires

 

by Tony Lea

27/10 2016

v0.9.3

0.9.3.0

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

The Requires

 

by Tony Lea

27/10 2016

v0.9.2

0.9.2.0

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

The Requires

 

by Tony Lea

27/10 2016

v0.9.1

0.9.1.0

A Laravel Admin Package for The Control Group to make your life easier and steer your project in the right direction

  Sources   Download

The Requires

 

by Tony Lea