コード例 #1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $notification = Notification::find($id);
     $users = User::all();
     $roles = Rol::all();
     return view('notifications::update', compact('notification', 'users', 'roles'));
 }
コード例 #2
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     if (Sentinel::hasAccess('task.update')) {
         $task = $this->model->find($id);
         $users = User::all();
         $roles = Rol::all();
         return view('tasks::update', compact('task', 'users', 'roles'));
     }
     alert()->error('No tiene permisos para acceder a esta area.', 'Oops!')->persistent('Cerrar');
     return back();
 }