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.
2 Replies
ifox
ifox2y 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
geetpurwar
geetpurwarOP2y 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)
Want results from more Discord servers?
Add your server