webup / laravel-blog
A Laravel package for create the perfect blog
0.19
2021-02-09 14:50 UTC
- dev-master
- 0.19
- 0.18
- 0.17
- 0.16
- 0.15
- 0.14
- 0.13
- 0.11
- 0.10
- 0.9
- 0.8
- 0.6
- 0.5
- 0.4
- 0.3
- 0.2
- 0.1
- dev-dependabot/npm_and_yarn/json5-2.2.3
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/engine.io-and-browser-sync-6.2.1
- dev-dependabot/npm_and_yarn/socket.io-parser-and-browser-sync-4.2.1
- dev-dependabot/npm_and_yarn/copy-props-2.0.5
- dev-dependabot/npm_and_yarn/ajv-6.12.6
- dev-dependabot/npm_and_yarn/path-parse-1.0.7
- dev-dependabot/npm_and_yarn/hosted-git-info-2.8.9
- dev-dependabot/npm_and_yarn/lodash-4.17.21
- dev-dependabot/npm_and_yarn/y18n-3.2.2
- dev-dependabot/npm_and_yarn/bl-1.2.3
- dev-dependabot/npm_and_yarn/decompress-4.2.1
- dev-dependabot/npm_and_yarn/node-sass-4.14.1
- dev-dependabot/npm_and_yarn/quill-1.3.7
This package is not auto-updated.
Last update: 2024-11-13 14:19:11 UTC
README
gd or imagick
=> php artisan vendor:publish --provider=Intervention\Image\ImageServiceProviderLaravel5
- edit
[Project]/config/image.php
Config
Database
'database' => [
'connection' => env('DB_CONNECTION_BLOG', 'mysql'),
'prefix_for_default_connection' => "blog_",
]
Auth
Guards
'blog' => [
'driver' => 'session',
'provider' => 'blogs',
],
Providers
'blogs' => [
'driver' => 'eloquent',
'model' => Entities\User::class,
],
Routes
- Listes des routes
Overriding
User
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");
}
Events
User
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;
});