Refactor HomePageSettings: remove view definition, update background video icon, and delete unused Blade view file. Add HomeSettings import in HomePageController.
This commit is contained in:
@@ -18,8 +18,6 @@ class HomePageSettings extends SettingsPage
|
|||||||
|
|
||||||
protected static string $settings = HomeSettings::class;
|
protected static string $settings = HomeSettings::class;
|
||||||
|
|
||||||
protected static string $view = 'filament.pages.home-page-settings';
|
|
||||||
|
|
||||||
public function form(Form $form): Form
|
public function form(Form $form): Form
|
||||||
{
|
{
|
||||||
return $form
|
return $form
|
||||||
@@ -49,9 +47,10 @@ class HomePageSettings extends SettingsPage
|
|||||||
->url(),
|
->url(),
|
||||||
])->columns(2),
|
])->columns(2),
|
||||||
]),
|
]),
|
||||||
|
|
||||||
Section::make('Background Video')
|
Section::make('Background Video')
|
||||||
->description('Upload or link the background video for the hero section.')
|
->description('Upload or link the background video for the hero section.')
|
||||||
->icon('heroicon-o-video')
|
->icon('heroicon-o-camera')
|
||||||
->schema([
|
->schema([
|
||||||
TextInput::make('bg_video')
|
TextInput::make('bg_video')
|
||||||
->label('Background Video URL')
|
->label('Background Video URL')
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use App\Settings\HomeSettings;
|
||||||
|
|
||||||
class HomePageController extends Controller
|
class HomePageController extends Controller
|
||||||
{
|
{
|
||||||
public function index()
|
public function index()
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
<x-filament-panels::page>
|
|
||||||
|
|
||||||
</x-filament-panels::page>
|
|
||||||
Reference in New Issue
Block a user