📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-02 04:53:01
📂
/ (Root)
/
home
/
orkouolp
/
web
/
testing.orkobd
/
laravel
/
app
/
Models
📍 /home/orkouolp/web/testing.orkobd/laravel/app/Models
🔄 Refresh
✏️
Editing: Company.php
Writable
<?php namespace App\Models; use Cviebrock\EloquentSluggable\Sluggable; use Illuminate\Database\Eloquent\Model; class Company extends Model { use Sluggable; protected $fillable = [ 'user_id', 'name', 'slug', 'logo', 'banner', 'bio', 'vision', 'industry_type_id', 'organization_type_id', 'team_size_id', 'establishment_date', 'website', 'email', 'phone', 'country', 'state', 'city', 'address', 'map_link' ]; public function sluggable(): array { return [ 'slug' => ['source' => 'name'] ]; } function companyCountry(){ return $this->belongsTo(Country::class, 'country', 'id'); } function companyState(){ return $this->belongsTo(State::class, 'state', 'id'); } function companyCity(){ return $this->belongsTo(City::class, 'city', 'id'); } function industryType(){ return $this->belongsTo(IndustryType::class, 'industry_type_id', 'id'); } function organizationType(){ return $this->belongsTo(OrganizationType::class, 'organization_type_id', 'id'); } function teamSize(){ return $this->belongsTo(TeamSize::class, 'team_size_id', 'id'); } }
💾 Save Changes
❌ Cancel