ifox
02/06/2022, 12:39 PMamargoCactus
02/06/2022, 12:44 PMcover to imageamargoCactus
02/06/2022, 12:44 PMamargoCactus
02/06/2022, 12:45 PMpublic $mediasParams = [
'image' => [
'default' => [
[
'name' => 'default',
'ratio' => 16 / 9,
],
],
'mobile' => [
[
'name' => 'mobile',
'ratio' => 1,
],
],
'flexible' => [
[
'name' => 'free',
'ratio' => 0,
],
[
'name' => 'landscape',
'ratio' => 16 / 9,
],
[
'name' => 'portrait',
'ratio' => 3 / 5,
],
],
],
];amargoCactus
02/06/2022, 12:45 PMifox
02/06/2022, 12:46 PMamargoCactus
02/06/2022, 12:48 PMamargoCactus
02/06/2022, 12:49 PMifox
02/06/2022, 12:49 PMamargoCactus
02/06/2022, 12:50 PMamargoCactus
02/06/2022, 12:50 PMamargoCactus
02/06/2022, 12:50 PMamargoCactus
02/06/2022, 12:51 PMamargoCactus
02/06/2022, 1:10 PM$skipCreateModal set to trueifox
02/06/2022, 1:12 PMifox
02/06/2022, 1:13 PMamargoCactus
02/06/2022, 1:15 PMkalle
02/06/2022, 6:04 PMphp
# form.blade.php
@formField('files', [
'name' => 'single_file',
'label' => 'Single file',
'note' => 'Add one file (per language)'
])
php
# Model
public $filesParams = ['single_file']; // a list of file roles
Any idea? Fresh install of 2.6 Twillifox
02/06/2022, 6:07 PMifox
02/06/2022, 6:07 PMkalle
02/06/2022, 6:08 PMifox
02/06/2022, 6:09 PMsl locale?kalle
02/06/2022, 6:11 PMtwill_users and I dont see that column if that is connected.
But for the record, only one locale is used on Laravel slkalle
02/06/2022, 6:12 PMifox
02/06/2022, 6:13 PMlanguage in the twill_users tableifox
02/06/2022, 6:14 PMifox
02/06/2022, 6:14 PMtranslatable.locales config?kalle
02/06/2022, 6:17 PMifox
02/06/2022, 6:18 PMifox
02/06/2022, 6:18 PMen. You can add more locales, or replace it by yours.