Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
app
/
Models
:
Course.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php // this Code is Cracked by dharunMods-YouTube-Channel namespace App\Models; use Illuminate\Database\Eloquent\Model; class Course extends Model { protected $fillable = [ 'title', 'amount', 'image_url', 'paidCourses', 'category_id', 'desc' ]; public function category() { return $this->belongsTo(Category::class); } public function lessons() { return $this->hasMany(Lesson::class); } public function users() { return $this->belongsToMany(User::class)->withTimestamps(); } }