app/controllers/ClientsController.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)
	{
		$client = Client::findOrFail($id);
		$client ->company = Input::get('company');
		$client ->street_address = Input::get('street_address');
		$client ->city = Input::get('city');
		$client ->state = Input::get('state');
		$client ->zip = Input::get('zip');
		$client ->website = Input::get('website');
		$client ->notes = Input::get('notes');
		$client->save(); 
		Flash::message('Client Updated!');
		return Redirect::route('clients')->with('flash_message', 'Client Updated');
	}
public function update ( $ id ) { $ client = Client :: findOrFail ( $ id ) ; $ client -> company = Input :: get ( 'company' ) ; $ client -> street_address = Input :: get ( 'street_address' ) ; $ client -> city = Input :: get ( 'city' ) ; $ client -> state = Input :: get ( 'state' ) ; $ client -> zip = Input :: get ( 'zip' ) ; $ client -> website = Input :: get ( 'website' ) ; $ client -> notes = Input :: get ( 'notes' ) ; $ client -> save ( ) ; Flash :: message ( 'Client Updated!' ) ; return Redirect :: route ( 'clients' ) -> with ( 'flash_message' , 'Client Updated' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .