main

filamentphp/demo

Last updated at: 29/12/2023 09:43

CreateBrand.php

TLDR

This file is a part of the Demo Projects project and is located at app/Filament/Resources/Shop/BrandResource/Pages/CreateBrand.php. It extends the CreateRecord class and is used to create a new brand record.

Classes

CreateBrand

This class extends the CreateRecord class and is used to create a new brand record. It sets the static $resource property to the BrandResource class.

<?php

namespace App\Filament\Resources\Shop\BrandResource\Pages;

use App\Filament\Resources\Shop\BrandResource;
use Filament\Resources\Pages\CreateRecord;

class CreateBrand extends CreateRecord
{
    protected static string $resource = BrandResource::class;
}