此软件包已被弃用,不再维护。未建议替代软件包。
此软件包的最新版本(v1.0.9)没有可用的许可证信息。

Syscontrollers CMS 的基本文件

安装: 141

依赖项: 0

建议者: 0

安全性: 0

星级: 0

关注者: 1

分支: 0

语言:JavaScript

v1.0.9 2018-01-31 16:33 UTC

README

在 app.php 中添加以下 providers

Syscontrollers\Admin\AdminServiceProvider::class,
Collective\Html\HtmlServiceProvider::class,
Jenssegers\Date\DateServiceProvider::class,
Laracasts\Flash\FlashServiceProvider::class,
Intervention\Image\ImageServiceProvider::class,
Maatwebsite\Excel\ExcelServiceProvider::class,

在 app.php 中添加以下 aliases

'Date'      => Jenssegers\Date\Date::class,
'Flash'     => Laracasts\Flash\Flash::class,
'Form'      => Collective\Html\FormFacade::class,
'HTML'      => Collective\Html\HtmlFacade::class,
'Image'     => Intervention\Image\Facades\Image::class,
'Excel'     => Maatwebsite\Excel\Facades\Excel::class,

在终端中输入以下内容

php artisan vendor:publish --force

在 app/Providers/AppServiceProvider.php 的 boot() 函数中添加以下内容

use Illuminate\Support\Facades\Schema;

Schema::defaultStringLength(191);

对于电子邮件消息,在 AppServiceProvider.php 中添加以下内容

if ($this->app->environment('production')){
    config([
        'app.name' => Configuracion::where('tipo','web')->where('nombre','titulo')->first()->valor,
        'app.url' => Configuracion::where('tipo','web')->where('nombre','dominio')->first()->valor,
        'app.logo' =>Configuracion::where('tipo','web')->where('nombre','logo')->first()->imagen_home
    ]);
}

并在 .env 文件中添加变量 APP_LOGO

在 auth.php 中更改以下内容

'providers' => [
    'users' => [
        'driver' => 'eloquent',
        'model' => App\Entities\Admin\User::class,
    ]
]

在 web.php 中,添加以下路由来处理图片

//CAMBIAR ANCHO Y ALTO DE IMAGEN
Route::get('/upload/{folder}/{width}x{height}/{image}', ['as' => 'image.adaptiveResize', 'uses' => 'ImageController@adaptiveResize']);

//CAMBIAR ANCHO DE IMAGEN
Route::get('/upload/{folder}/{width}/{image}', ['as' => 'image.withResize', 'uses' => 'ImageController@withResize']);