Sami
06/19/2022, 1:07 PMSami
06/19/2022, 1:07 PMdedli
06/20/2022, 5:23 AMHarings Rob
06/20/2022, 6:22 AMdedli
06/20/2022, 7:00 AMHarings Rob
06/20/2022, 7:30 AMifox
06/20/2022, 7:42 AM'type' => 'tiptap'
, it supports tablesifox
06/20/2022, 7:50 AMhasImage('image', 'desktop')
because the default value of the second parameter is "default"mateoD
06/20/2022, 7:55 AMKormi
06/20/2022, 8:46 AM$locales = LaravelLocalization::getSupportedLocales();
$prefix = (count($locales)>1)? LaravelLocalization::setLocale() : '';
$middleware = (count($locales)>1)? ['localize', 'localeSessionRedirect', 'localizationRedirect', 'localeViewPath', 'cache.headers'] : ['localeViewPath', 'cache.headers'];
Route::group([
'prefix' => $prefix,
'middleware' => $middleware,
], function(){ mondini_main_routes(); });
This works fine
But in the backend the previews of my models still point to / en
How can I remove it easily?
In the future I will need to add more languages (I would add a redirect via htaccess possibly to fix the seo "/" to "/ en" issues) ...dedli
06/20/2022, 9:11 AMKormi
06/20/2022, 9:25 AMKormi
06/20/2022, 9:27 AM<?php
namespace App\View\Composers;
use App\Models\Setting;
use Illuminate\View\View;
class SettingsComposer
{
protected $settings = [];
public function __construct()
{
// return false;
foreach (Setting::all() as $setting) {
$this->settings[$setting->key] = $setting->value;
}
}
public function compose(View $view)
{
$view->with('settings', $this->settings);
}
}
But why?Harings Rob
06/20/2022, 9:33 AMKormi
06/20/2022, 10:45 AMHarings Rob
06/20/2022, 10:48 AMHarings Rob
06/20/2022, 10:48 AMkalle
06/20/2022, 10:57 AMKormi
06/20/2022, 12:01 PM'locales' => [
'en',
// 'it',
// 'ru',
],
When I try to save... slugs for EN is always empty!
How can i fix this?
I do not want that a twill user can edit, for the moment, other languages...Harings Rob
06/20/2022, 1:20 PMmarquin
06/20/2022, 6:03 PMifox
06/20/2022, 6:25 PMtwill-navigation.php
, nest your modules in the primary_navigation
ifox
06/20/2022, 6:28 PMadmin.php
routes file, it looks like this:
php
Route::group(['prefix' => 'work'], function () {
Route::module('works');
Route::module('disciplines');
Route::module('sectors');
});
ifox
06/20/2022, 6:30 PMphp
return [
'work' => [
'title' => 'Work',
'route' => 'admin.work.works.index',
'primary_navigation' => [
'works' => [
'title' => 'Work',
'module' => true,
],
'discplines' => [
'title' => 'Disciplines',
'module' => true,
],
'sectors' => [
'title' => 'Sectors',
'module' => true,
],
],
],
];
marquin
06/20/2022, 6:54 PMmarquin
06/20/2022, 7:02 PMmarquin
06/20/2022, 7:02 PMifox
06/20/2022, 7:10 PMGvido Blue Fox
06/21/2022, 9:59 AMGvido Blue Fox
06/21/2022, 10:00 AM