• Stars
    star
    131
  • Rank 266,879 (Top 6 %)
  • Language
    PHP
  • License
    MIT License
  • Created over 2 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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.1 & 8.2

Laravel: 10

Installation

You can install the package via composer:

composer require stephenjude/filament-blog

php artisan filament-blog:install

php artisan storage:link

php artisan migrate

You'll have to register the plugin in your panel provider.

public function panel(Panel $panel): Panel
{
    return $panel
        ...
        ->plugin(
            Stephenjude\FilamentBlog\BlogPlugin::make()
        );
}

Displaying your content

Filament 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\Post
  • Stephenjude\FilamentBlog\Models\Author
  • Stephenjude\FilamentBlog\Models\Category

Posts & Drafts

$posts = Post::published()->get();

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

Post Content

$post = Post::find($id);

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

Post Category & Author

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

$author = $post->author;

$author->id;
$author->name;
$author->email;
$author->photo;
$author->bio;
$author->github_handle;
$author->twitter_handle;


$category = $post->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',
    ],

    /**
     * Configs for Posts that give you the option to change
     * the sort column and direction of the Posts.
     */
    'sort' => [
        'column' => 'published_at',
        'direction' => 'asc',
    ],
];

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.

More Repositories

1

laravel-wallet

A simple wallet implementation for Laravel.
PHP
254
star
2

laravel-payment-gateways

A simple Laravel API implementation for all payment providers.
PHP
92
star
3

lite-blog

A Laravel blog generator.
PHP
76
star
4

extended-artisan-commands

Generate plain PHP classes, traits and interfaces using artisan console commands.
PHP
71
star
5

filament-feature-flags

Filament implementation of feature flags and segmentation with Laravel Pennant.
PHP
67
star
6

filament-debugger

Easily add Laravel Telescope and Horizon to Filament admin panel.
PHP
52
star
7

api-test-helper

A collection of helper methods for testing and debugging API endpoints.
PHP
49
star
8

default-model-sorting

Add custom default sorting column to your eloquent model.
PHP
34
star
9

paystack-payout-

Integrating Paystack checkout system for any website
JavaScript
31
star
10

simple-query-filter

This package allows you to filter eloquent model queries based on HTTP request.
PHP
30
star
11

paystack-lite

Fastest Way To Setup Paystack Checkout Form In Your Laravel Application
PHP
22
star
12

filament-jetstream

Integrate all Laravel Jetstream features into your Filament application.
PHP
14
star
13

laravel-code-style

Laravel code style rules
PHP
9
star
14

codebyte-solutions

PHP
5
star
15

LaravelCPanelAutoDeploy

Auto deploy yml for auto deploying Laravel on CPanel
3
star
16

laravel-sendportal

The Laravel Package (Unofficial) to work with the SendPortal APIs
PHP
3
star
17

ProductAPI

A simple Lumen API using Test Driven Developement Approach
PHP
3
star
18

custom-class-enums

PHP
2
star
19

UserAPI

A sample project on how to test PHP Traits
PHP
1
star
20

providus-sdk

PHP
1
star
21

plaid-sdk-laravel

PHP
1
star
22

dockerized-laravel-app

A sample dockerized laravel app.
PHP
1
star
23

litemailer

An email sending application where user can add different email addresses and send out mass emails.
PHP
1
star
24

personal_bash_profile

Shell
1
star
25

vbank-php-sdk

Laravel PHP SDK to easily work with the VDF Microfinance Bank APIs.
PHP
1
star
26

student-result-sheet

Students Termly Result Sheet Template built with tailwindcss
HTML
1
star