Hello together
Can anyone tell me how to create Tailor Blueprints via PHP script?
Thanks and greetings
Hello together
Can anyone tell me how to create Tailor Blueprints via PHP script?
Thanks and greetings
Hi @BIT
To work with an entry using PHP, you may use the Tailor\Models\EntryRecord
model and call the inSection
static method, passing the handle to return a prepared database query. Here is an example:
$post = \Tailor\Models\EntryRecord::inSection('Blog\Post');
$post->title = 'Imported Post';
$post->save();
More info on working with Tailor models can be found here: