syscontrollers / admin
This package is abandoned and no longer maintained.
No replacement package was suggested.
There is no license information available for the latest version (v1.0.9) of this package.
Archivos base para CMS de Syscontrollers
v1.0.9
2018-01-31 16:33 UTC
Requires
- php: >=7.0
- intervention/image: ^2.3
- jenssegers/date: ^3.2
- laracasts/flash: ^2.0
- laravel/framework: 5.5.*
- laravelcollective/html: 5.5.*
- maatwebsite/excel: ^2.1
README
Agregar los siguientes providers en app.php
Syscontrollers\Admin\AdminServiceProvider::class,
Collective\Html\HtmlServiceProvider::class,
Jenssegers\Date\DateServiceProvider::class,
Laracasts\Flash\FlashServiceProvider::class,
Intervention\Image\ImageServiceProvider::class,
Maatwebsite\Excel\ExcelServiceProvider::class,
Agregar los siguientes aliases en app.php
'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,
En la terminal ingresar lo siguiente
php artisan vendor:publish --force
En app/Providers/AppServiceProvider.php en la funcion boot(), agregar lo siguiente:
use Illuminate\Support\Facades\Schema;
Schema::defaultStringLength(191);
Para los mensajes de Email, agregar lo siguiente en 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
]);
}
Y en el archivo .env agregar la varaible APP_LOGO
En auth.php cambiar lo siguiente:
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => App\Entities\Admin\User::class,
]
]
En web.php, agregar las siguientes rutas para manejar las imagenes:
//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']);