美文网首页
好用的扩展包

好用的扩展包

作者: 熊航 | 来源:发表于2019-11-29 09:44 被阅读0次

    laravel-admin快速帮你构建后台管理的工具

    composer require encore/laravel-admin
    php artisan vendor:publish --provider="Encore\Admin\AdminServiceProvider"
    php artisan admin:install
    // DatabaseSeeder中添加填充文件
    $this->call(\Encore\Admin\Auth\Database\AdminTablesSeeder::class);
    

    fourn/admin-ck

    让laravel-admin能够方便的使用ckeditor和ckfinder

    composer require fourn/admin-ck 
    php artisan vendor:publish --tag=admin-ck 
    // 使用
    $form->ckuploader('image', '封面图');
    $form->ckeditor('content', '内容'); 
    

    fourn/admin-config

    基于laravel-admin的数据库配置管理工具,仅通过配置文件就可生成整个表单,支持使用tab页对配置项进行分组。

    composer require fourn/admin-config
    php artisan migrate
    php artisan vendor:publish --tag=admin-config
    

    逆向 Seed 生成器 — orangehill/iseed

    composer require orangehill/iseed --dev
    php artisan iseed books
    

    图片处理 —intervention/image

    composer require intervention/image
    php artisan vendor:publish --provider="Intervention\Image\ImageServiceProviderLaravel5"
    

    EasyWeChat 开源的 微信 非官方 SDK。

    # Laravel < 5.8
    composer require "overtrue/laravel-wechat:~4.0"
    # Laravel >= 5.8
    composer require "overtrue/laravel-wechat:~5.0"
    
    // 配置 在 config/app.php 注册 ServiceProvider 和 Facade (Laravel 5.5 + 无需手动注册)
    'providers' => [
        // ...
        Overtrue\LaravelWeChat\ServiceProvider::class,
    ],
    'aliases' => [
        // ...
        'EasyWeChat' => Overtrue\LaravelWeChat\Facade::class,
    ],
    
    php artisan vendor:publish --provider="Overtrue\LaravelWeChat\ServiceProvider"
    

    overtrue/laravel-pinyin

    composer require "overtrue/laravel-pinyin:~3.0"
    // config/app.php添加
    'providers' => [
        //...
        Overtrue\LaravelPinyin\ServiceProvider::class,
    ],
    'aliases' => [
        //...
        'Pinyin' => Overtrue\LaravelPinyin\Facades\Pinyin::class,
    ],
    // 使用
    function method
    pinyin() app('pinyin')->convert()
    pinyin_abbr() app('pinyin')->abbr()
    pinyin_permalink app('pinyin')->permalink()
    pinyin_sentence app('pinyin')->sentence()
    
    use Overtrue\Pinyin\Pinyin;
    app(Pinyin::class)->permalink($form->title)
    

    相关文章

      网友评论

          本文标题:好用的扩展包

          本文链接:https://www.haomeiwen.com/subject/oiswwctx.html