pboivin
03/14/2022, 9:31 PMzynth
03/14/2022, 9:40 PMBibo
03/15/2022, 8:02 AMHarings Rob
03/15/2022, 8:44 AMBibo
03/15/2022, 9:58 AMSami
03/15/2022, 10:30 AMifox
03/15/2022, 10:38 AMhtml option in indexColumns to render a link. https://github.com/area17/twill/blob/075aea60c2bc5c04a7e57ccd0f438ee77c83cf42/src/Http/Controllers/Admin/ModuleController.php#L1196Sami
03/15/2022, 10:52 AMgetCategoryHtmlAttribute() which returns the link and set the html option to categoryHtml?ifox
03/15/2022, 10:53 AMSami
03/15/2022, 11:24 AMtitleColumnKey, right? 'Cause even though I set it as html => true, it renders the codeifox
03/15/2022, 11:46 AMkalle
03/15/2022, 1:52 PMedit route of model, since with manual redirect form has missing data in forms?
After refresh it shows everything.ifox
03/15/2022, 1:53 PMkalle
03/15/2022, 1:54 PMphp
return redirect()->route('admin.template.templates.edit', ['template' => $id]);kalle
03/15/2022, 1:54 PMifox
03/15/2022, 1:56 PMkalle
03/15/2022, 1:56 PMifox
03/15/2022, 1:57 PMkalle
03/15/2022, 1:59 PMKormi
03/15/2022, 2:05 PMHarings Rob
03/15/2022, 2:08 PMKormi
03/15/2022, 2:17 PMKormi
03/15/2022, 2:28 PMpublic function markets_related()
{
return $this->hasMany(\App\Models\Market::class);
}
And in model market
public function agents_related()
{
return $this->hasMany(\App\Models\Agent::class);
}
but it seems not workKormi
03/15/2022, 2:31 PMpublic function getFormFields($object)
{
$fields = parent::getFormFields($object);
$fields = $this->getFormFieldsHandleJsonRepeaters($object, $fields);
var_dump($this->markets_related());die;
foreach($this->markets_related() as $p){
}
$fields['browsers']['markets_related'] = $this->getFormFieldsForRelatedBrowser($object, 'markets_related', 'title'); // do not get related link but only the related from the model
return $fields;
}Harings Rob
03/15/2022, 2:35 PMKormi
03/15/2022, 2:40 PMKormi
03/15/2022, 2:40 PMKormi
03/15/2022, 2:41 PMKormi
03/15/2022, 2:41 PMKormi
03/15/2022, 2:42 PM