persgeek/blog

Blog

Maintainers

Details

github.com/persgeek/blog

Source

Issues

Installs: 14

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/persgeek/blog

0.8.0 2024-06-17 09:23 UTC

This package is not auto-updated.

Last update: 2025-10-06 15:43:31 UTC


README

This package provides a comprehensive solution for building blog websites using the Laravel framework.

How to install

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=sanctum

Specify the default filesystem disk in your .env file:

FILESYSTEM_DISK=public

Implement 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;
    }
}