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