kevupton/ethereal

为laravel提供的扩展功能


README

Laravel 扩展包。

扩展核心 Laravel 框架,提供更简单、更快的开发体验。

查看wiki以查看示例和完整文档。

Wiki

安装

下载

使用composer将包下载到您的项目中。

 composer require kevupton/ethereal

设置

然后,将 Kevupton\Ethereal\Providers\EtherealServiceProvider 添加到您的 app.php 配置文件中的 providers 部分。

    'providers' => [
    
        /*
         * Laravel Framework Service Providers...
         * Place at the end of the array
         */
    
        Kevupton\Ethereal\Providers\EtherealServiceProvider::class,
    
    ],

基本用法

只需扩展 Kevupton\Ethereal\Models\Ethereal 类,而不是Laravel Model类,为每个希望拥有Ethereal功能的模型。

    <?php namespace My\Namespace\Location;

    use Kevupton\Ethereal\Models\Ethereal;

    class Example extends Ethereal { }

查看wiki以获取完整的用法文档。

Wiki

作者:Kevin Upton