PHP code example of studioespresso / craft-seeder
1. Go to this page and download the library: Download studioespresso/craft-seeder library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
studioespresso / craft-seeder example snippets
'useLocalAssets' => [
'volumeId' => 1,
'path' => 'test/'
]
'fields' => [
"sessions" => "ignore",
"radioField" => [
'value' => 'value2',
],
"category" => [
'mode' => 'random',
'value' => [152, 153]
]
]