/** * Create get API Mata Pelajaran */ public function getAll() { $data = Matapelajaran::all(); return Response::json($data, 200); }