วันพฤหัสบดีที่ 24 กรกฎาคม พ.ศ. 2568

Filament / Laravel on AwardSpace.com

 Filament / Laravel on AwardSpace.com

1.create App / .htaccess

# To prevent access to .env and other files
<Files .*>
# Apache 2.2
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
# Apache 2.4
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
</Files>

<IfModule mod_alias.c>
RedirectMatch 301 ^/$ http://chet7.atwebpages.com/public
</IfModule>

2.copy vendor\livewire\livewire\dist\*.*  -> /livewire
3.routes/web.php  add

Livewire::setUpdateRoute(function ($handle) {
 return Route::post('/public/livewire/update', $handle)
  ->middleware('web');
});

4.vendor/filament/filament/resources/views/components/theme-switcher/index.blade.php

@php
$theme='system';
$icon='heroicon-m-computer-desktop';
    $label = __("filament-panels::layout.actions.theme_switcher.{$theme}.label");
@endphp

5.set Permission /storage -> drwxrwxrwx(777)

ไม่มีความคิดเห็น:

แสดงความคิดเห็น