`Sebastlan
10/29/2021, 4:58 PMpublic function getHrefAttribute()
{
switch ($this->destination) {
case 'internal':
if ($this->linkable) {
$baseUrl = '/' . $this->linkable->fullSlug;
} else {
$baseUrl = '/';
}
return $this->buildHref($baseUrl);
break;
case 'external':
return $this->buildHref($this->url);
break;
case 'homepage':
return '/';
break;
}
}chrispymm
10/29/2021, 4:59 PM`Sebastlan
10/29/2021, 5:08 PMifox
10/29/2021, 5:08 PMifox
10/29/2021, 5:09 PMifox
10/29/2021, 5:10 PM`Sebastlan
10/29/2021, 5:11 PMchrispymm
10/29/2021, 6:06 PMafatmustafa
10/29/2021, 8:18 PMafatmustafa
10/29/2021, 8:18 PMafatmustafa
10/29/2021, 8:19 PMpboivin
10/29/2021, 9:02 PMAtom One Dark theme and laravel-blade plugin. This has basic support for custom blade directives which works for me:afatmustafa
10/29/2021, 9:12 PMHữu Hiếu
10/30/2021, 12:13 PMifox
10/30/2021, 12:20 PMHữu Hiếu
10/30/2021, 2:31 PMifox
10/30/2021, 2:32 PMifox
10/30/2021, 2:32 PMHữu Hiếu
10/30/2021, 2:35 PMHữu Hiếu
10/30/2021, 2:36 PMHữu Hiếu
10/30/2021, 2:37 PMifox
10/30/2021, 2:40 PMtwill.glide.source accordingly. I'm not sure why you would want to store uploads at the root of the project though.
Default value is:
php
'source' => env('GLIDE_SOURCE', storage_path('app/public/' . config('twill.media_library.local_path')))ifox
10/30/2021, 2:41 PMapp_path('uploads')Hữu Hiếu
10/30/2021, 3:20 PMSami
11/01/2021, 10:07 AMskipCreateModal => true so the entity is not created instantly. However the modal is still shown (and I don't want it to be shown 😠)ifox
11/01/2021, 10:23 AMcode as a field on the form too, which means it is now twice on the form. I can understand that you don't want the modal as far as UX, but can you explain why in this case? I'm not sure it changes anything.ifox
11/01/2021, 10:24 AMSami
11/01/2021, 10:27 AMcode field should be generated in prepareFieldsBeforeCreate() or some other function. There are no other fields that would be suitable for the "title", so basically now when you type in the code, it would be overwritten anyway and it's a bit confusing for the userifox
11/01/2021, 10:28 AMifox
11/01/2021, 10:29 AM