user
07/06/2021, 2:48 PMphp
'enabled' => [
'buckets' => true,
],
'buckets' => [
'homepage' => [
'name' => 'Homepage',
'buckets' => [
'post_feature' => [
'name' => 'Featured Blog - Big',
'bucketables' => [
[
'module' => 'posts',
'name' => 'Posts',
'scopes' => ['published' => true],
],
],
'max_items' => 1,
],
'post_top' => [
'name' => 'Side Feature - Top',
'bucketables' => [
[
'module' => 'posts',
'name' => 'Posts',
'scopes' => ['published' => true],
],
],
'max_items' => 1,
],
'post_mid' => [
'name' => 'Side Feature - Middle',
'bucketables' => [
[
'module' => 'posts',
'name' => 'Posts',
'scopes' => ['published' => true],
],
],
'max_items' => 1,
],
'post_bot' => [
'name' => 'Side Feature - Bottom',
'bucketables' => [
[
'module' => 'posts',
'name' => 'Posts',
'scopes' => ['published' => true],
],
],
'max_items' => 1,
],
],
],
],
user
07/06/2021, 2:49 PMifox
07/06/2021, 2:51 PMFeature::whereIn('bucket_name', ['post_feature', 'post_top', 'post_mid', 'post_bot'])->get()
ifox
07/06/2021, 2:51 PMfeatured
relationship giving you access to the postsuser
07/06/2021, 2:52 PMuser
07/06/2021, 2:52 PMpboivin
07/06/2021, 2:55 PMrelated
is indexed by browser_name
. I don't even think there's any real overhead on the Laravel side because the fully qualified model is stored in the DB.user
07/06/2021, 2:55 PMifox
07/06/2021, 2:57 PMifox
07/06/2021, 2:58 PMifox
07/06/2021, 2:59 PMvoid
07/06/2021, 3:06 PMvoid
07/06/2021, 3:08 PMpboivin
07/06/2021, 3:08 PMnpm run twill-build
is rightpboivin
07/06/2021, 3:09 PMphp artisan twill:build
void
07/06/2021, 3:09 PMifox
07/06/2021, 3:09 PMifox
07/06/2021, 3:09 PMvoid
07/06/2021, 3:10 PMpboivin
07/06/2021, 3:14 PMviews/admin/blocks
ifox
07/06/2021, 3:14 PMphp artisan twill:update
?void
07/06/2021, 3:16 PMifox
07/06/2021, 3:16 PMvoid
07/06/2021, 3:17 PMvoid
07/06/2021, 3:18 PMpboivin
07/06/2021, 3:23 PMvoid
07/06/2021, 3:25 PMvoid
07/06/2021, 3:26 PMuser
07/06/2021, 3:38 PMifox
07/06/2021, 3:39 PMtwill:update
would have solved it for you