ok
Direktori : /home2/selectio/www/3idiotsgadgetstore.in/app/Model/ |
Current File : /home2/selectio/www/3idiotsgadgetstore.in/app/Model/Video.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'); } }