Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Add-On][Done] Gutenberg for Backpack with already-made fields, repeatable and multilanguage support #46

Open
AndreiTelteu opened this issue Jan 3, 2023 · 0 comments

Comments

@AndreiTelteu
Copy link

Hi !

I created this plugin that uses VanOns/laraberg under the hood and allows you to create gutenberg blocks only using php.

https://github.com/customberg/customberg-php

To create a block you simply execute the command php artisan make:block SwiperHomepage for example. This creates a class where you have to declare what fields you want for this block (text, rich_text, color, upload_image, select, repeatable). You can also enable multilanguage on text and rich_text.
And we also create a block blade file where you can also push scripts and styles in a stack.

The source code for this demo you can find in the example folder. The example project also uses docker-compose and sqlite, this way is super easy to play with this project.

Note: The reason this project is called customberg-php and not customberg-for-backpack is because I plan to make this framework and admin-panel agnostic (meaning it will work in other admin panels and other frameworks as well). I'm not sure if I need separate packages for all admin-panels or I can keep everything under the same repo/package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant