This package provides a comprehensive solution for building blog websites using the Laravel framework.
composer require persgeek/blog
Edit config/database.php to ensure that all migrations are created in the correct order:
'migrations' => [
'update_date_on_publish' => false
]Specify the default authentication guard in your .env file:
AUTH_GUARD=sanctumSpecify the default filesystem disk in your .env file:
FILESYSTEM_DISK=publicImplement the UserContract in your User model to manage user's permission:
use PG\Blog\Contracts\UserContract;
class User extends Authenticatable implements UserContract
{
public function canManageBlog()
{
return true;
}
}