<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class CoursesBanner extends Model
{
    protected $table = 'course_banner';
    protected $primaryKey = 'id';
    protected $fillable = [
        'courses_id',
        'courses_name',
        'courses_slug',
        'banner_name',
        'banner_image',
        'active_status',
    ];
    protected $hidden = [
        'created_at',
        'updated_at'
    ];


    public function courseslist() {
        return $this->hasMany('App\Models\Courses', 'courses_id', 'courses_id');
    }
}
