<?php

namespace App\Models;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class CoursesDescription extends Model
{   use SoftDeletes;
    protected $dates = ['deleted_at'];
    protected $table = 'course_description';
    protected $primaryKey = 'course_description_id';
    protected $fillable = [
        'courses_id',
        'courses_name',
        'courses_slug',
        'courses_title',
        'courses_description',
        'active_status',
    ];
    protected $hidden = [
        'created_at',
        'updated_at',
        'deleted_at'
    ];


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