ok

Mini Shell

Direktori : /home2/selectio/www/3-idiots/app/Model/
Upload File :
Current File : //home2/selectio/www/3-idiots/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');
    }

}

Zerion Mini Shell 1.0