/** * 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!'); }
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; }
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; }