ifox
10/05/2021, 8:29 AMdelta107
10/05/2021, 8:29 AMdelta107
10/05/2021, 8:30 AMleftblank
10/05/2021, 8:47 AMagnonym
10/05/2021, 8:54 AMView::composer('*', function ($view) {
if (!request()->routeIs('admin.*')) {
// Fathom Analytics.
$fathom_site_id = Cache::rememberForever('site.fathom_site_id', function () {
return app(SettingRepository::class)->byKey('fathom_site_id') ?? '';
});
$view->with('fathom_site_id', $fathom_site_id);
}
});
View::composer('site.layout.main', function ($view) {
$locale = app()->getlocale();
// Menu.
$menuId = Cache::rememberForever('setting.menu.header', function () {
return (int) app(SettingRepository::class)->byKey('menu_header_id') ?? '';
});
$menuHeader = Cache::rememberForever('menu.' . $locale . '.' . $menuId, function () use ($menuId, $locale) {
$menu = Menu::getFront($menuId, $locale);
if (null !== $menu) {
$menu->load('translations', 'blocks');
}
return $menu;
});
$view->with('menu_header', $menuHeader);
});leftblank
10/05/2021, 9:04 AMSofyan1999
10/05/2021, 9:18 AMAlexander
10/05/2021, 9:20 AMagnonym
10/05/2021, 9:25 AMpboivin
10/05/2021, 12:45 PMtwill:dev launches a dev server behind the scenes (vue-cli-service serve) which runs on port 8080. With sail, you can expose this port by adding to your `docker-compose.yml`:
services:
laravel.test:
...
ports:
- '${APP_PORT:-80}:80'
- '8080:8080'
...delta107
10/05/2021, 1:59 PMifox
10/05/2021, 2:00 PMpublish_start_date?delta107
10/05/2021, 2:32 PMdelta107
10/05/2021, 2:32 PMifox
10/05/2021, 2:35 PMifox
10/05/2021, 2:36 PMifox
10/05/2021, 2:36 PMifox
10/05/2021, 2:36 PMdelta107
10/05/2021, 2:37 PMifox
10/05/2021, 2:37 PMdelta107
10/05/2021, 2:37 PMifox
10/05/2021, 2:37 PMdelta107
10/05/2021, 2:37 PMifox
10/05/2021, 2:38 PMdelta107
10/05/2021, 2:39 PM`Sebastlan
10/05/2021, 2:54 PMpboivin
10/05/2021, 3:02 PMgetTags() or `getTagsList()`:
https://twill.io/docs/api/2.x/A17/Twill/Repositories/Behaviors/HandleTags.html`Sebastlan
10/05/2021, 3:12 PMifox
10/05/2021, 3:13 PMpboivin
10/05/2021, 3:13 PM