ok
Direktori : /proc/thread-self/root/proc/self/root/home2/selectio/www/bharath/a1tex.in/app/Model/ |
Current File : //proc/thread-self/root/proc/self/root/home2/selectio/www/bharath/a1tex.in/app/Model/Banner.php |
<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; class Banner extends Model { protected $casts = [ 'published' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime', 'resource_id' => 'integer', ]; public function product(){ return $this->belongsTo(Product::class,'resource_id'); } }