Download the PHP package cyd622/laravel-admin without Composer

On this page you can find all versions of the php package cyd622/laravel-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-admin

laravel-admin

Build Status StyleCI Scrutinizer Code Quality Packagist Total Downloads

laravel-admin 是一个可以快速帮你构建后台管理的工具,它提供的页面组件和表单元素等功能,能帮助你使用很少的代码就实现功能完善的后台管理功能。

Demo 账号/密码:admin/admin

Inspired by SleepingOwlAdmin and rapyd-laravel.

英文文档

安装

首先确保安装好了laravel5.4,并且数据库连接设置正确。

config/app.php加入ServiceProvider:

然后运行下面的命令完成安装:

启动服务后,在浏览器打开 http://localhost/admin/ ,使用用户名 admin 和密码 admin登陆.

默认配置

安装完成之后,laravel-admin所有的配置都在config/admin.php文件中。

存储配置

本地上传 先添加存储配置,config/filesystems.php 添加一项disk:

设置上传的路径为public/upload (public_path('upload'))。

然后选择上传的disk,打开config/admin.php找到:

将disk设置为上面添加的admin,directory.imagedirectory.file分别为用$form->image($column)和$form->file($column)上传的图片和文件的上传目录

host为图片和文件的网络访问url前缀。

云盘上传 如果需要上传到云存储,需要安装对应laravel storage的适配器,拿七牛云存储举例

首先安装 zgldh/qiniu-laravel-storage

同样配置好disk,在config/filesystems.php 添加一项:

然后修改Laravel-Admin的上传配置,打开config/admin.php找到:

disk选择上面配置的qiniuhost配置为七牛云存储的测试域名。

使用文档

目录结构

安装完成之后,后台的安装目录为app/Admin,之后大部分的后台开发编码工作都是在这个目录下进行。

app/Admin/routes.php文件用来配置后台路由,详细使用请阅读路由配置。

app/Admin/Controllers目录用来存放后台路由器文件,该目录下的HomeController.php文件是后台首页的显示控制器,ExampleController.php为实例文件。

快速开始

Laravel自带的users表举例,表结构为:

对应的数据模型为文件 App\User.php

laravel-admin可以通过使用以下几步来快速生成users表的CURD操作页面:

1.添加路由器

使用下面的命令来创建一个对应App\User模型的路由器

上面的命令会创建路由器文件app/Admin/Controllers/UserController.php.

2.添加路由配置

laravel-admin的路由配置文件app/Admin/routes.php里添加一行:

3.添加左侧菜单栏连接

打开http://localhost:8000/admin/auth/menu,添加对应的menu

然后就能在后台管理页面的左侧边栏看到用户管理页面的链接入口了。

4.创建表格表单

剩下的工作就是构建数据表格和表单了,打开 app/Admin/Contollers/UserController.php,找到form()grid()方法,然添加构建代码,更多详细使用请查看model-form。

其它

laravel-admin 基于以下组件或者服务:


All versions of laravel-admin with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.4
symfony/dom-crawler Version 3.1.*
laravel/framework Version 5.4.*
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 cyd622/laravel-admin contains the following files

Loading the files please wait ....