app/controllers/ProjectsController.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()
	{
		$project = new Project;
		$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 Added!');
		return Redirect::route('add_project')->with('flash_message', 'Project Added!');
	}
public function store ( ) { $ project = new Project ; $ 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 Added!' ) ; return Redirect :: route ( 'add_project' ) -> with ( 'flash_message' , 'Project Added!' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .