Creating Posts/Models programatically from controller.
Hi,
Is it possible to create blocks/modules/model/repeater content programatically from controller or any function. Please advise.
Thanks.
I
ifox•326d ago
Hi, definitely possible. The models/tables structure is quite simple, so you can do this in different ways:
- writing directly to DB
- using eloquent models
- using Twill's module repository class, by passing the same structure than what the browser is sending when you submit a form in Twill
G
geetpurwar•324d ago
May I request for an example.
I have created a Block Editor (Slider.php) with Title and Image that we are using for creating page.
How do I create page for eloquent model or function using this Block (Slider.php)
1.4KMembers
View on DiscordWant results from more Discord servers?
More PostsfeaturedGood evening. I would like some help. I've upgraded to version 3 of Twill, and the "featured" functiPhpUnit Test for Twill Blocks/Modules?Can we write PhpUnit test for Twill Blocks and Modules?BlockComponent blocks are not available in BlockEditorI created blocks using `php artisan twill:make:componentBlock name` as per documentation, but none oSlows down the page after saving the @formConnectedFields fieldGood afternoon
I have several roles to which I want to attach the ability to select certain actionsChecked checkboxes by defaultGood afternoon (morning)! I use the Multiple Checkboxes field
How can I make certain fields checkedDefine Settings-Views inside a package>capsuleIs there a way to configure a settings related view inside a package capsule? I couldn't find someth