pboivin
09/21/2021, 8:40 PMpboivin
09/21/2021, 8:44 PMname match the relationship method on the model? (eg. invitees in the tutorial)dpadular
09/21/2021, 8:46 PM@formField('browser', [
'moduleName' => 'downloads',
'name' => 'Downloads',
'label' => 'Downloads',
'max' => 20,
])
From my Product model:
public function downloads()
{
return $this->belongsToMany(\App\Models\Download::class);
}dpadular
09/21/2021, 8:46 PMdpadular
09/21/2021, 8:46 PMdpadular
09/21/2021, 8:47 PM'name' => 'Downloads', to 'name' => 'downloads', fixed itdpadular
09/21/2021, 8:49 PMuser
09/22/2021, 7:48 AMmedia field what is in a repeater?
I have this property on the modal of the media field:
php
public $mediasParams = [
'cat_image' => [
'default' => [
[
'name' => 'default',
'ratio' => 1,
],
]
],
];
And because I saw that in block you need an extra config in config/twill.php I added this to the array in `config/twill.php`:
php
'crops' => [
'cat_image' => [
'default' => [
[
'name' => 'default',
'ratio' => 1,
],
]
],
]user
09/22/2021, 7:49 AMifox
09/22/2021, 8:23 AMuser
09/22/2021, 8:23 AMifox
09/22/2021, 8:24 AMuser
09/22/2021, 8:25 AMconfig/twill.phpifox
09/22/2021, 8:27 AMifox
09/22/2021, 8:30 AMuser
09/22/2021, 8:30 AMifox
09/22/2021, 8:31 AMSami
09/22/2021, 8:41 AMuser
09/22/2021, 8:42 AMchrispymm
09/22/2021, 10:59 AMchrispymm
09/22/2021, 11:02 AMifox
09/22/2021, 11:12 AMSami
09/22/2021, 11:12 AMifox
09/22/2021, 11:12 AMSami
09/22/2021, 11:12 AMifox
09/22/2021, 11:14 AMcontent which I believe has been renamedSami
09/22/2021, 11:16 AMSami
09/22/2021, 11:16 AMifox
09/22/2021, 11:16 AMphp artisan twill:updateSami
09/22/2021, 11:19 AM