Closed avrahamyosuf closed 22 hours ago
Hey @avrahamyosuf! We're sorry to hear that you've hit this issue. 💛
However, it looks like you forgot to fill in the reproduction repository URL. Can you edit your original post and then we'll look at your issue?
We need a public GitHub repository which contains a Laravel app with the minimal amount of Filament code to reproduce the problem. Please do not link to your actual project, what we need instead is a minimal reproduction in a fresh project without any unnecessary code. This means it doesn't matter if your real project is private / confidential, since we want a link to a separate, isolated reproduction. That would allow us to download it and review your bug much easier, so it can be fixed quicker. Please make sure to include a database seeder with everything we need to set the app up quickly.
Package
filament/filament
Package Version
sürüm 3.0
Laravel Version
Sürüm 11
Livewire Version
No response
PHP Version
PHP 8.3
Problem description
I could not create the tree to add categories in my admin panel. can you help me? Please.
Expected behavior
Steps to reproduce
`<?php
namespace App\Filament\Resources;
use App\Models\Category; use Filament\Resources\Resource; use Filament\Forms; use Filament\Forms\Form; use Filament\Forms\Components\TextInput; use Filament\Forms\Components\Select; use Filament\Tables; use Filament\Tables\Table; use Filament\Tables\Columns\TextColumn; use Filament\Tables\Columns\DateColumn; use Filament\Actions\EditAction; use Filament\Actions\DeleteBulkAction;
class CategoryResource extends Resource { protected static ?string $model = Category::class;
}
<?php
use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema;
class CreateEmlakKategorielTable extends Migration
{ public function up() { Schema::create('categories', function (Blueprint $table) { $table->id(); $table->unsignedBigInteger('parent_id')->nullable(); $table->foreign('parent_id')->references('id')->on('categories')->onDelete('cascade'); $table->string('ct_name'); $table->string('slug'); $table->unsignedBigInteger('propertytype_id')->nullable(); $table->boolean('is_active')->default(true); $table->timestamps(); }); }
`}
`<?php
namespace App\Models;
use Illuminate\Support\Str;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes;
class Category extends Model {
} `