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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners