Source: vanrossum.dev

Introducing DropBlockEditor
About a month ago, I tweeted that I was working on drag and drop editor for Laravel and showed a little demo video. 🤠 I have been working on a https://twitter.com/LaravelLivewire?ref_src=twsrc%5Etfw powered block editor for Laravel.

You install the package in your Laravel app and in a blade view, you render the editor through a Livewire component.

This might look like this: namespace App\DropBlockEditor\Blocks; use Jeffreyvr\DropBlockEditor\Blocks\Block; class Article extends Block { public $title = 'Article'; public $data = [ 'title' => 'Hi!', 'content' => 'This is just a very basic example of an article block.'

In comes the (slightly modified) Livewire component: namespace App\Http\Livewire; use Jeffreyvr\DropBlockEditor\Components\BlockEditComponent; class Article extends BlockEditComponent { public function render() { return
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners