<?php
// this Code is Cracked by dharunMods-YouTube-Channel
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Category extends Model
{
protected $fillable = ['name'];
public function courses()
{
return $this->hasMany(Course::class);
}
public function lessons()
{
return $this->hasMany(Lesson::class);
}
}