Example #1
0
 public function deleteMajor($major_id)
 {
     $major = Major::where('id', $major_id)->first();
     $major->delete();
 }
Example #2
0
 public static function get($major_id)
 {
     $major = Major::where('id', $major_id)->first();
     return $major;
 }