syscontrollers / admin
Archivos base para CMS de Syscontrollers
Installs: 141
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Language:JavaScript
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']);