Skip to content

Commit

Permalink
update config
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-sevendays-be committed Sep 29, 2023
1 parent 7c08fcb commit 09c817e
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# A visual page builder for Filament

[![Latest Version on Packagist](https://img.shields.io/packagist/v/haringsrob/filament-page-builder.svg?style=flat-square)](https://packagist.org/packages/haringsrob/filament-page-builder)
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/haringsrob/filament-page-builder/run-tests?label=tests)](https://github.com/haringsrob/filament-page-builder/actions?query=workflow%3Arun-tests+branch%3Amain)
[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/haringsrob/filament-page-builder/Check%20&%20fix%20styling?label=code%20style)](https://github.com/haringsrob/filament-page-builder/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amain)
[![Total Downloads](https://img.shields.io/packagist/dt/haringsrob/filament-page-builder.svg?style=flat-square)](https://packagist.org/packages/haringsrob/filament-page-builder)
[![Latest Version on Packagist](https://img.shields.io/packagist/v/sevendays/filament-page-builder.svg?style=flat-square)](https://packagist.org/packages/sevendays/filament-page-builder)
[![run-tests](https://github.com/Sevendays-Digital/filament-page-builder/actions/workflows/run-tests.yml/badge.svg)](https://github.com/Sevendays-Digital/filament-page-builder/actions/workflows/run-tests.yml)
[![Fix PHP code style issues](https://github.com/Sevendays-Digital/filament-page-builder/actions/workflows/fix-php-code-style-issues.yml/badge.svg)](https://github.com/Sevendays-Digital/filament-page-builder/actions/workflows/fix-php-code-style-issues.yml)[![Total Downloads](https://img.shields.io/packagist/dt/sevendays/filament-page-builder.svg?style=flat-square)](https://packagist.org/packages/sevendays/filament-page-builder)


With this package you have a new Filament field (like Builder) but with a visual ui and dynamic types.
Expand All @@ -25,7 +24,7 @@ To see a demo:
You can install the package via composer:

```bash
composer require haringsrob/filament-page-builder
composer require sevendays/filament-page-builder
```

You can publish and run the migrations with:
Expand Down Expand Up @@ -102,8 +101,8 @@ In order to save blocks, you need to add the Blockable interface and HasBlocks t

namespace App\Models;

use Haringsrob\FilamentPageBuilder\Models\Contracts\Blockable;
use Haringsrob\FilamentPageBuilder\Models\Traits\HasBlocks;
use Sevendays\FilamentPageBuilder\Models\Contracts\Blockable;
use Sevendays\FilamentPageBuilder\Models\Traits\HasBlocks;
use Illuminate\Database\Eloquent\Model;

class Page extends Model implements Blockable
Expand All @@ -122,7 +121,7 @@ In your resource form we can now add the field:

```php
<?php
use Haringsrob\FilamentPageBuilder\Forms\Components\BlockEditor;
use Sevendays\FilamentPageBuilder\Forms\Components\BlockEditor;
use App\Filament\Blocks\DemoBlock;

public static function form(Form $form): Form
Expand All @@ -146,7 +145,7 @@ There are not many tools for this yet but basic rendering works like this:

```php
@foreach($page->blocks as $block)
{!! \Haringsrob\FilamentPageBuilder\Facades\BlockRenderer::renderBlock($block) !!}
{!! \Sevendays\FilamentPageBuilder\Facades\BlockRenderer::renderBlock($block) !!}
@endforeach
```

Expand Down

0 comments on commit 09c817e

Please sign in to comment.