예제 #1
0
 protected function findModel($id)
 {
     if (($model = role::findOne($id)) !== null) {
         return $model;
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
 }
예제 #2
0
 public function failedRegistrationForm()
 {
     $onLoad = 'onload=regunsuccess();';
     $dashboard = 0;
     $tbl_role = role::all();
     $tbl_title = title::all();
     return view('pages.signup', compact('tbl_role', 'tbl_title', 'dashboard', 'onLoad'));
 }