Download the PHP package vinlon/laravel-lay-admin without Composer

On this page you can find all versions of the php package vinlon/laravel-lay-admin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-lay-admin

Laravel LayUI Admin

更新日志

v1.0.0 修改enum库版本,PHP版本最低要求为8.0

v0.8.0: 将角色改为通过枚举类定义,不再写入数据库

v0.7.1: 增加管理员密码找回功能

v0.7.0: 后台用户不再通过命令行创建,第一次打开后会进入初始化页面

v0.6.x: 增加资源管理功能,包括图片管理和内容管理,不需要手动执行db:seed初始化角色

v0.5.0: 将菜单的定义放在配置文件中(去掉admin_menus表及菜单管理页面),免去上线时同步系统菜单的步骤

v0.4.0: 更新layui版本到v2.6.4, 查看更新日志

v0.3.1: 添加表单必填项的自动处理功能

v0.3.0: api路由前缀由admin改为lay-admin,以免和业务端代码产生冲突

v0.2.4: BaseController 增加 paginateResponse 方法,简化分页数据查询的代码

使用

  1. 引入package

  2. 发布 public 文件

  3. 发布 config 文件

  4. 创建数据库表并初始化数据

  5. 生成JWT_SECRET

配置建议

命令

开发指引

使用auth:lay-admin middleware 对请求的登录状态进行验证

角色定义

系统默认只添加了【超级管理员】这一个角色,如果需要更多角色,可以通过如下流程添加:

  1. 重新定义一个继承AdminRole的角色类

  2. 在getMenuIds方法中定义该角色的菜单

  3. 在getPrivileges方法返回该角色对应的权限

BaseController

表单必填项自动处理

对于如下的表单定义,框架会找到 lay-verify="required" 的元素,自动进行如下处理:

  1. 通过 .parent().pref('label') 找到对应的label, 在label的内容前添加必填项标记( 红色的 * )

  2. 将 input 元素的 layType 设置为 tips, 将错误提示的样式改为 tips

  3. 根据label的值(菜单名称),为input元素定义默认的 placeholder 和 lay-reqtext (请输入菜单名称)

自定义请求方法

在html代码中,可使用如下方法发起HTTP请求


All versions of laravel-lay-admin with dependencies

PHP Build Version
Package Version
Requires bensampo/laravel-enum Version ^4.2
tymon/jwt-auth Version ^1.0
mews/captcha Version ^3.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package vinlon/laravel-lay-admin contains the following files

Loading the files please wait ....