kalle
02/09/2022, 6:24 PMamargoCactus
02/09/2022, 6:25 PM@php @endphp directives but i need to know the category id selectedifox
02/09/2022, 6:26 PM$itemifox
02/09/2022, 6:27 PMamargoCactus
02/09/2022, 6:28 PMifox
02/09/2022, 6:28 PMpboivin
02/09/2022, 6:28 PMifox
02/09/2022, 6:29 PMifox
02/09/2022, 6:31 PMHarvoDaDestroya
02/09/2022, 9:08 PMifox
02/09/2022, 9:09 PMphp artisan twill:buildHarvoDaDestroya
02/09/2022, 9:10 PMifox
02/09/2022, 9:11 PMtwill.build_timeoutifox
02/09/2022, 9:11 PMamargoCactus
02/10/2022, 1:13 AMifox
02/10/2022, 1:13 AMamargoCactus
02/10/2022, 1:13 AMamargoCactus
02/10/2022, 1:14 AMifox
02/10/2022, 1:15 AMifox
02/10/2022, 1:15 AMifox
02/10/2022, 1:16 AMamargoCactus
02/10/2022, 1:18 AMamargoCactus
02/10/2022, 1:19 AMifox
02/10/2022, 1:23 AMamargoCactus
02/10/2022, 2:00 AMhazelbag
02/10/2022, 6:46 PMuser
02/10/2022, 10:46 PMifox
02/10/2022, 10:50 PMuser
02/10/2022, 10:54 PMclass News extends Model implements Sortable
{
use HasBlocks, HasTranslation, HasSlug, HasMedias, HasFiles, HasRevisions, HasPosition, IsFeatured, HasRelated;
.
.
.
public function authors(): BelongsToMany
{
return $this->belongsToMany(Author::class,'related','related_id','subject_id','id','id');
}
NewsRepository.php
class NewsRepository extends ModuleRepository
{
use HandleBlocks, HandleTranslations, HandleSlugs, HandleMedias, HandleFiles, HandleRevisions, HandleTags, HandleImageUrls;
protected $relatedBrowsers = ['authors'];
}
Browser form field inside form.blade.php
@formField('browser', [
'moduleName' => 'authors',
'name' => 'authors',
'label' => 'Author',
'max' => 3,
])ifox
02/10/2022, 10:56 PM