headimgurl

看天气🌊

篮球评述员:杨毅

简介:篮球杨谈 解说评述超过二十年 曾担任中央电视台篮球解说顾问 对机构数据和比赛的分析有独到的见解

Filament 文档

1 个月前

10 热度

Resources

Overview

IntroductionResources are static classes that are used to build CRUD interfaces for your Eloquent models. They describe how administrators should be able to interact with data from your app using tables and forms.

Creating a resourceTo create a resource for the App\Models\Customer model:

php artisan make:filament-resource Customer

This will create several files in the app/Filament/Resources directory:

.
+-- Customers
|   +-- CustomerResource.php
|   +-- Pages
|   |   +-- CreateCustomer.php
|   |   +-- EditCustomer.php
|   |   +-- ListCustomers.php
|   +-- Schemas
|   |   +-- CustomerForm.php
|   +-- Tables
|   |   +-- CustomersTable.php

Your new resource class lives in CustomerResource.php.