Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current none :
/
proc
/
self
/
root
/
var
/
www
/
html
/
tpid-aden
/
api
/
app
/
Models
/
Or
Select Your none :
Upload File :
New :
File
Dir
//proc/self/root/var/www/html/tpid-aden/api/app/Models/News.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use App\Helpers\AdvanceSearch; class News extends Model { use HasFactory, AdvanceSearch; protected $fillable = [ 'title', 'slug', 'body', 'image_cover', 'created_by', 'location_code_id', 'date_start', 'date_end' ]; protected $columns = [ 'title' => 'like', // '' => 'like' ]; function user(){ return $this->belongsTo(User::class, 'created_by'); } function location_code() { return $this->belongsTo(LocationCode::class); } }