PHPackages                             craftile/laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. craftile/laravel

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

craftile/laravel
================

Craftile Laravel Package

v0.6.0(3mo ago)12.7k↓45.1%MITPHPPHP ^8.2

Since Sep 25Pushed 3mo agoCompare

[ Source](https://github.com/craftile/laravel)[ Packagist](https://packagist.org/packages/craftile/laravel)[ RSS](/packages/craftile-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (9)Versions (12)Used By (0)

Craftile Laravel
================

[](#craftile-laravel)

> **Laravel integration for the Craftile visual editor** - Build dynamic, block-based layouts with seamless editor integration.

[![Latest Version](https://camo.githubusercontent.com/bc3d06d112731a551e578c43537d65e4ffa2a7f8a898de4c6372e918a07a31a2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6372616674696c652f6c61726176656c3f7374796c653d666c61742d737175617265)](https://packagist.org/packages/craftile/laravel)[![PHP Version](https://camo.githubusercontent.com/0137db7634f2bfb58931a1788223a4a9136100008a2ee84e758b20b9c6ec21a0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e322d626c75653f7374796c653d666c61742d737175617265)](https://php.net)[![Laravel Version](https://camo.githubusercontent.com/11811e5abbdfddc6aae9d1b29272c4c9d47ff15e750efb0733c2014426383df9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d31302532422d7265643f7374796c653d666c61742d737175617265)](https://laravel.com)

This package provides Laravel integration for the [Craftile Visual Editor](https://github.com/craftile/editor), enabling you to create block-based content management systems with Blade templates.

🚀 Installation
--------------

[](#-installation)

Install via Composer:

```
composer require craftile/laravel
```

⚙️ Configuration
----------------

[](#️-configuration)

Publish the configuration file:

```
php artisan vendor:publish --provider="Craftile\Laravel\CraftileServiceProvider"
```

This will create a `config/craftile.php` file where you can customize:

- Blade directive names
- Component namespace
- Block compiler settings
- Cache configuration

📦 Creating Blocks
-----------------

[](#-creating-blocks)

### 1. Block Class

[](#1-block-class)

Create a block by implementing the `BlockInterface`:

```
