Luís Novais
07/04/2021, 3:55 PMpboivin
07/04/2021, 4:05 PMpboivin
07/04/2021, 4:05 PMLuís Novais
07/04/2021, 4:09 PMuser
07/04/2021, 9:26 PMuser
07/04/2021, 9:26 PMuser
07/04/2021, 9:35 PMSQLSTATE[42S02]: Base table or view not found: 1146 Table '{PROJECT}.taggables' doesn't exist (SQL: select `tags`.*, `taggables`.`taggable_id` as `pivot_taggable_id`, `taggables`.`tag_id` as `pivot_tag_id`, `taggables`.`taggable_type` as `pivot_taggable_type` from `tags` inner join `taggables` on `tags`.`id` = `taggables`.`tag_id` where `taggables`.`taggable_id` = 1 and `taggables`.`taggable_type` = posts order by `order_column` asc) (View: D:\laragon\www\{PROJECT}\vendor\area17\twill\views\partials\form\_tags.blade.php)
My Model:
php
class Post extends Model
{
use HasBlocks, HasSlug, HasMedias, HasRevisions, HasTags;
...
}
My Repository:
php
class PostRepository extends ModuleRepository
{
use HandleBlocks, HandleSlugs, HandleMedias, HandleRevisions, HandleTags;|
...
}
Add the end off my form file @formField('tags')
ifox
07/04/2021, 9:40 PMHasTags
from your modelifox
07/04/2021, 9:41 PMuser
07/05/2021, 11:33 AMimage()
method?ifox
07/05/2021, 11:34 AMuser
07/05/2021, 11:36 AMuser
07/05/2021, 1:23 PMform.blade.php
from a different module? e.g. if I had a model1 where I created some dynamic data, and wanted to add that data to a form to model2 as a list of options for example?pboivin
07/05/2021, 1:31 PMmulti_select
options with all records from another module.user
07/05/2021, 1:34 PMpboivin
07/05/2021, 1:36 PMuser
07/05/2021, 1:37 PMifox
07/05/2021, 1:38 PMrelated
table.ifox
07/05/2021, 1:38 PMuser
07/05/2021, 1:39 PMpboivin
07/05/2021, 1:39 PMrelated
is my new favorite ATM 🙂user
07/05/2021, 1:40 PMuser
07/05/2021, 1:40 PMifox
07/05/2021, 1:44 PMformData($request)
function to your module controller. Something like: app(ReactionRepository::class)->list All('title')
will give you back a list that our selection form fields can take as optionsuser
07/05/2021, 1:45 PMifox
07/05/2021, 1:46 PMuser
07/06/2021, 10:14 AMuser
07/06/2021, 10:15 AM@formField('medias', [
'name' => 'thumbnail',
'label' => 'Thumbnail Image'
])
ifox
07/06/2021, 10:29 AMthumbnail
in your model's mediasParams
?user
07/06/2021, 10:32 AMpost
I would like to see the thumbnail