void
08/18/2021, 5:19 PMvoid
08/18/2021, 5:20 PMsapta34
08/19/2021, 9:27 AMpboivin
08/19/2021, 12:21 PMsapta34
08/19/2021, 12:50 PMuser
08/20/2021, 2:54 PM@formfield('input', [
'name' => 'telefone',
'label' => 'Telefone',
'placeholder' => '+55 41 00000-0000',
'translated' => true,
'maxlength' => 100,
'required' => true,
'mask' => ['+## ## ####-####','+## ## #####-####']
])
pboivin
08/20/2021, 3:01 PMplaceholder
or note
attributes.user
08/20/2021, 3:03 PMjamel
08/20/2021, 7:53 PMpboivin
08/20/2021, 8:01 PMPage
model with a header
image role, which has 2 crops mobile
and desktop
.
You can access the crops like this:
$mobile_image = $page->image('header', 'mobile');
$desktop_image = $page->image('header', 'desktop');
You'll need some CSS and/or responsive image markup to bring all this to your frontend.pboivin
08/20/2021, 8:02 PMjamel
08/20/2021, 8:50 PMKirk Bushell
08/21/2021, 3:29 AMKirk Bushell
08/21/2021, 3:30 AMKirk Bushell
08/21/2021, 3:30 AMKirk Bushell
08/21/2021, 3:32 AMandrewsamuelhan
08/21/2021, 5:32 AMandrewsamuelhan
08/21/2021, 5:32 AMandrewsamuelhan
08/21/2021, 5:35 AMifox
08/21/2021, 9:55 AMandrewsamuelhan
08/23/2021, 6:00 AMandrewsamuelhan
08/23/2021, 6:01 AMNoemie
08/23/2021, 7:32 PMpboivin
08/23/2021, 7:44 PMresources/views/
, in one of the .blade.php
files. Here you should find parts of the HTML that make up your menu. If you are looking to simply add a fixed menu item, this might be all you need. 🤞KyleAF
08/24/2021, 2:01 AMphp
return [
//.... other menu items here
'exit-admin-portal' => [
'title' => new \Illuminate\Support\HtmlString('<span class="envlabel" style="color: white; display: flex; padding: 10px">Exit</span>'),
'route' => 'exit-admin-portal'
]
];
Then just make sure that the "route" variable points to a named route in your routes:
Probably web.php:
php
Route::get('/exit-portal', 'Path\To\Controller\MISCController@exitPortal')->name('exit-admin-portal');
From the controller you can do anything you want! For me it was redirect to another page to exit the twill dashboard.jamel
08/24/2021, 6:34 PMpboivin
08/24/2021, 7:56 PM$medias = collect([$project])
->merge($project->blocks)
->flatMap
->medias;
This will give you a collection of all medias attached to $project
and any of its direct children blocks.jamel
08/24/2021, 8:26 PMjamel
08/24/2021, 8:26 PMpboivin
08/24/2021, 8:38 PM->unique('id');