app/controllers/ClientsController.php
/**
	 * Store a newly created resource in storage.
	 *
	 * @return Response
	 */
Store a newly created resource in storage.
@return Response
Store a newly created resource in storage . @return Response
public function store()
	{
		$client = new Client;
		$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 Added!');
		return Redirect::route('add_client')->with('flash_message', 'Client Added!');
	}
public function store ( ) { $ client = new Client ; $ 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 Added!' ) ; return Redirect :: route ( 'add_client' ) -> with ( 'flash_message' , 'Client Added!' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .