app/controllers/ProjectsController.php
/**
	 * Update the specified resource in storage.
	 *
	 * @param  int  $id
	 * @return Response
	 */
Update the specified resource in storage.
@param  int  $id
@return Response
Update the specified resource in storage . @param int $id @return Response
public function update($id)
	{
		$project = Project::find($id);
		$project ->client_id = Input::get('client_id');
		$project ->company = Input::get('company');
		$project ->service = Input::get('service');
		$project ->details = Input::get('details');
		$project ->date = Input::get('date');
		$project ->amount = Input::get('amount');
		$project ->contact_name = Input::get('contact_name');
		$project ->contact_email = Input::get('contact_email');
		$project ->contact_phone = Input::get('contact_phone');
		$project ->notes = Input::get('notes');
		$project ->save(); 
		Flash::message('Project Updated!');
		return Redirect::route('projects')->with('flash_message', 'Project Updated');
	}
public function update ( $ id ) { $ project = Project :: find ( $ id ) ; $ project -> client_id = Input :: get ( 'client_id' ) ; $ project -> company = Input :: get ( 'company' ) ; $ project -> service = Input :: get ( 'service' ) ; $ project -> details = Input :: get ( 'details' ) ; $ project -> date = Input :: get ( 'date' ) ; $ project -> amount = Input :: get ( 'amount' ) ; $ project -> contact_name = Input :: get ( 'contact_name' ) ; $ project -> contact_email = Input :: get ( 'contact_email' ) ; $ project -> contact_phone = Input :: get ( 'contact_phone' ) ; $ project -> notes = Input :: get ( 'notes' ) ; $ project -> save ( ) ; Flash :: message ( 'Project Updated!' ) ; return Redirect :: route ( 'projects' ) -> with ( 'flash_message' , 'Project Updated' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .