ok

Mini Shell

Direktori : /home2/selectio/www/bharath/a1tex.in/app/Model/
Upload File :
Current File : /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');
    }

}

Zerion Mini Shell 1.0