Path : /var/www/clients/client0/web25/web/app/Models/ |
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
Current File : /var/www/clients/client0/web25/web/app/Models/Category.php |
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Spatie\Translatable\HasTranslations; class Category extends Model { use HasFactory; use HasTranslations; public $translatable = ['title']; protected $fillable = [ 'title', 'description', 'slug' ]; public function posts(){ return $this->hasMany(Post::class); } }