gd or imagick
=> php artisan vendor:publish --provider=Intervention\Image\ImageServiceProviderLaravel5
- edit
[Project]/config/image.php
'database' => [
'connection' => env('DB_CONNECTION_BLOG', 'mysql'),
'prefix_for_default_connection' => "blog_",
]
'blog' => [
'driver' => 'session',
'provider' => 'blogs',
],
'blogs' => [
'driver' => 'eloquent',
'model' => Entities\User::class,
],
- Listes des routes
protected function redirectAfterStore(Webup\LaravelBlog\Entities\User $user){
return route("admin.blog.user.index");
}
protected function redirectAfterUpdate(Webup\LaravelBlog\Entities\User $user){
return route("admin.blog.user.index");
}
Event::listen('laravel-blog.user.login', function ($event) {
// $event->user;
});
Event::listen('laravel-blog.user.logout', function ($event) {
// $event->user;
});
Event::listen('laravel-blog.user.register', function ($event) {
// $event->user;
// $event->password;
});
Event::listen('laravel-blog.user.update', function ($event) {
// $event->user;
});