ifox
01/04/2022, 5:00 PMamargoCactus
01/04/2022, 5:04 PMifox
01/04/2022, 5:05 PMdefault is an option on the formField instruction. it takes a value.amargoCactus
01/04/2022, 5:08 PMdpadular
01/04/2022, 5:11 PMifox
01/04/2022, 5:27 PMamargoCactus
01/04/2022, 5:30 PMamargoCactus
01/04/2022, 6:07 PMHarings Rob
01/04/2022, 6:12 PMHarings Rob
01/04/2022, 6:13 PMifox
01/04/2022, 6:15 PMKlief
01/04/2022, 6:48 PM$selected_items_ids = $block->browserIds('posts');
$posts = App\Models\Post::find($selected_items_ids);ifox
01/04/2022, 6:59 PM$block->getRelated('posts') insteadKlief
01/04/2022, 7:22 PMafatmustafa
01/05/2022, 8:46 AMafatmustafa
01/05/2022, 8:47 AMKlief
01/05/2022, 9:05 AMKlief
01/05/2022, 9:06 AMKlief
01/05/2022, 9:14 AMHarings Rob
01/05/2022, 9:53 AMHarings Rob
01/05/2022, 9:57 AMphp
<?php
namespace Database\Seeders;
use App\Models\ScheduledContent;
use Illuminate\Database\Seeder;
class PageSeeder extends Seeder
{
public function run()
{
$page = ScheduledContent::create([
'title' => 'page title seeded',
'active' => true,
]);
$page->blocks()->create([
'editor_name' => 'default',
'type' => 'example',
'position' => 1,
'content' => [
'text' => ['en' => null],
'title' => ['en' => 'test title'],
],
]);
}
}Klief
01/05/2022, 10:21 AMFourStacks
01/05/2022, 4:47 PMFourStacks
01/05/2022, 4:48 PMMEDIA_LIBRARY_ENDPOINT_TYPE=s3
MEDIA_LIBRARY_IMAGE_SERVICE=A17\Twill\Services\MediaLibrary\GlideFourStacks
01/05/2022, 4:48 PMFourStacks
01/05/2022, 4:48 PMFourStacks
01/05/2022, 4:48 PMif (!$this->app->runningInConsole()) {
$s3 = app(Glide::class)->makeCloudSource('s3');
config()->set('twill.glide.source', $s3);
config()->set('twill.glide.cache', $s3);
}FourStacks
01/05/2022, 4:50 PMFourStacks
01/05/2022, 4:51 PMifox
01/05/2022, 4:52 PM