hyvor/hyvor-blogs-laravel

For self-hosting a Hyvor Blogs blog on a Laravel application

0.0.3 2023-06-25 11:11 UTC

This package is auto-updated.

Last update: 2024-09-25 21:10:44 UTC


README

This a Laravel package that provides a simple way to add a blog to your Laravel application using Hyvor Blogs blogging platform.

See the tutorial on our Blog. 👇

Adding a blog to your Laravel Application.

Installation

composer require hyvor/hyvor-blogs-laravel

Configuration

php artisan vendor:publish --provider="Hyvor\HyvorBlogs\HyvorBlogsServiceProvider" --tag="config"

This will create a hyvorblogs.php file in your config directory.

<?php
return [
    
    'blogs' => [
        [
            'subdomain' => '',
            'delivery_api_key' => '',
            'webhook_secret' => null,
            'route' => '/blog',
            'cache_store' => null,
            'middleware' => [],
        ],
    ],
];