mpociot/illuminate-contao
Composer 安装命令:
composer require mpociot/illuminate-contao
包简介
PHP project.
README 文档
README
Use Laravel classes in Contao CMS (WIP)
Installation via Composer
$ composer require mpociot/illuminate-contao
Usage
Validation
Important You need to copy the validation.php into this Contao directory:
TL_ROOT /system/lang/en/validation.php
use Mpociot\IlluminateContao\Validator; $validator = Validator::make([], [ "ean" => "required" ]); if( $validator->fails() ) { $errors = $validator->errors(); }
Eloquent / Database
<?php use Mpociot\IlluminateContao\EncapsulatedEloquentBase; class UserProfile extends EncapsulatedEloquentBase { protected $table = "user_profile"; public function user() { return $this->belongsTo('User'); } }
Running Tests
$ composer test
License
This library is licensed under the MIT license. Please see License file for more information.
统计信息
- 总下载量: 22
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-08-15