Tailor - Create Entries for import

Hello together

Can anyone tell me how to create Tailor Blueprints via PHP script?

Thanks and greetings


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';

More info on working with Tailor models can be found here:

1 Like