Пример #1
0
 /**
  * Update the specified resource in storage.
  *
  * @param  Request  $request
  * @param  Project  $project
  * @return Response
  */
 public function update(ProjectFormRequest $request, Project $project)
 {
     $project->update($request->all());
     return redirect('/projects')->with('message', 'Project updated!');
 }
Пример #2
0
 public function submitapprocal(ProjectFormRequest $request, $projectgid)
 {
     $projectid = base64_decode($projectgid);
     $project = Project::find($projectid);
     $project->active = 2;
     $project->save();
     $request->session()->flash('alert-success', 'Records successfully updated.');
     return \Redirect::to('/home/project-posted');
     exit;
 }
Пример #3
0
 public function getSetaslive(ProjectFormRequest $request, $projectid)
 {
     $project = Project::find($projectid);
     $project->live = 1;
     $project->approval_live = date("Y-m-d");
     $project->save();
     $request->session()->flash('alert-success', 'Records successfully updated.');
     return \Redirect::to('/admin/project');
     exit;
 }