Download the PHP package comingdemon/admin-laravel without Composer
On this page you can find all versions of the php package comingdemon/admin-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download comingdemon/admin-laravel
More information about comingdemon/admin-laravel
Files in comingdemon/admin-laravel
Download comingdemon/admin-laravel
More information about comingdemon/admin-laravel
Files in comingdemon/admin-laravel
Vendor comingdemon
Package admin-laravel
Short Description Universal PHP admin quick development library for laravel
License MIT
Homepage http://www.m-create.cn
Package admin-laravel
Short Description Universal PHP admin quick development library for laravel
License MIT
Homepage http://www.m-create.cn
Keywords laravel-admincomingdemon
Please rate this library. Is it a good library?
Informations about the package admin-laravel
PHP Demon Admin Library For Laravel
服务说明
本服务仅支持Laravel6+(包含7和8)
正常来说是内部开发使用的,外部使用也可以(水平有限,请慎用,可能会有漏洞或者性能问题)
使用的Bootstrap4作为基础前端框架,jQuery版本为3.5
前置说明
- 例子用的是MYSQL5.7(有json字段),如果不需要的话释放迁移后请手动将字段改成text(example_master.stub)
安装说明
- 使用composer安装服务
- 在config/app.php的providers中增加本服务
- 设置admin的数据库连接(默认是admin)以及相关database配置
- 编辑AppServiceProvider文件中的boot方法,增加默认字符长度,用于解决laravel的session表默认字符串255导致无法生成索引的问题,
- 执行命令生成建表迁移文件
- 执行迁移动作生成对应表和初始数据
- 设置静态资源文件目录(不用写public)
- 发布资源到对应目录,设置访问路径(默认是admin)
- 设置静态资源CDN(默认没有,只读本地)
- 大功告成
- 可以在vendor/comingdemon/admin-laravel目录中查看源码用于参考或调试
- composer require comingdemon/admin-laravel
- edit config/app.php providers add Demon\AdminLaravel\AdminServiceProvider::class
- edit.env (ADMIN_CONNECTION) or add config/admin.php (edit connection, default : admin)
- edit config/database.php : connections add {connection}
- edit AppServiceProvider boot : Schema::defaultStringLength(191)
- php artisan admin:table
- php artisan migrate
- edit.env (ADMIN_STATIC) or add config/admin.php (edit static, default : /static/admin)
- php artisan vendor:publish --tag=admin-all (If only the asset is updated later, --tag=admin-asset)
- edit.env (ADMIN_PATH) or add config/admin.php (edit path, default : admin)
- edit.env (ADMIN_CDN) or add config/admin.php (edit cdn, default : )
- browser url {address}/admin or {path}
进阶操作
- config('admin.access') = env('ADMIN_ACCESS', false) //开启权限校验(需要数据库支持,默认账号:admin,默认密码:demon)
- config('admin.authentication') = env('ADMIN_AUTHENTICATION') //自定义授权控制器
- config('admin.badge') = env('ADMIN_BADGE') //自定义菜单标记统计的类
- config('admin.session.*') = env('ADMINSESSION*') //设置session配置(和laravel自带的session一致)
- config('admin.element.*') = env('ADMINELEMENT*') //设置页面元素对应的视图
特殊申明
本库已发布至Composer,理论上只内部使用,如有问题请自行解决,概不提供服务
最终解释权归魔网天创信息科技:尘兵所属
All versions of admin-laravel with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.2.0
laravel/framework Version >=6.0
comingdemon/demon Version ^1.0.3
comingdemon/admin-asset Version ^1.0
gregwar/captcha Version ^1.1.9
phpoffice/phpspreadsheet Version ^1.16
laravel/framework Version >=6.0
comingdemon/demon Version ^1.0.3
comingdemon/admin-asset Version ^1.0
gregwar/captcha Version ^1.1.9
phpoffice/phpspreadsheet Version ^1.16
The package comingdemon/admin-laravel contains the following files
Loading the files please wait ....