LaravelPackages.net
Acme Inc.
Toggle sidebar
jmztaylor/filament-blog

Filament Blog Builder

2
0
About jmztaylor/filament-blog

jmztaylor/filament-blog is a Laravel package for filament blog builder. It currently has 0 GitHub stars and 2 downloads on Packagist. Install it with composer require jmztaylor/filament-blog. Discover more Laravel packages by jmztaylor or browse all Laravel packages to compare alternatives.

Last updated

Filament Blog Builder

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

A faceless blog content manager with configurable richtext and markdown support for filament admin panel.

Filament Admin Panel

This package is tailored for Filament Admin Panel.

Make sure you have installed the admin panel before you continue with the installation. You can check the documentation here

Supported Versions

PHP: 8.0

Laravel: 8 & 9

Installation

You can install the package via composer:

composer require jmztaylor/filament-blog

php artisan filament-blog:install

php artisan storage:link

php artisan migrate

Displaying your content

Filment blog builder is faceless, it doesn't have any opinions on how you display your content in your frontend. You can use the blog models in your controllers to display the different resources:

  • Stephenjude\FilamentBlog\Models\Course
  • Stephenjude\FilamentBlog\Models\Category

Courses & Drafts

$courses = Course::published()->get();

$drafts = Course::draft()->get();

Course Content

$course = Course::find($id);

$course->id;
$course->title;
$course->slug;
$course->excerpt;
$course->banner_url;
$course->content;
$course->published_at;

Course Category

$course = Course::with(['author', 'category'])->find($id);

$category = $course->category;

$category->id;
$category->name;
$category->slug;
$category->description;
$category->is_visible;
$category->seo_title;
$category->seo_description;

Configurations

This is the contents of the published config file:

<?php

return [

    /**
     * Supported content editors: richtext & markdown:
     *      \Filament\Forms\Components\RichEditor::class
     *      \Filament\Forms\Components\MarkdownEditor::class
     */
    'editor'  => \Filament\Forms\Components\RichEditor::class,

    /**
     * Buttons for text editor toolbar.
     */
    'toolbar_buttons' => [
        'attachFiles',
        'blockquote',
        'bold',
        'bulletList',
        'codeBlock',
        'h2',
        'h3',
        'italic',
        'link',
        'orderedList',
        'redo',
        'strike',
        'undo',
    ],
];

More Screenshots


Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Comments