main

filamentphp/demo

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

CreateCategory.php

TLDR

This file is a PHP class named "CreateCategory" that extends the "CreateRecord" class. It is located in the "App\Filament\Resources\Shop\CategoryResource\Pages" namespace and is used to create a new category record.

Classes

CreateCategory

The "CreateCategory" class is a subclass of the "CreateRecord" class. It is located in the "App\Filament\Resources\Shop\CategoryResource\Pages" namespace. This class is responsible for creating a new category record.

<?php

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

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

class CreateCategory extends CreateRecord
{
    protected static string $resource = CategoryResource::class;
}