public function add()
	{
		// Are we creating this object from the menu add wizard?
		// Toss the menu_id URL variable into the session instead
		if (Input::get('menu_id')) {
			return Redirect::to($this->uri('add'))->with('menu_id', Input::get('menu_id'));
		}
		// And grab the menu_id from the session or the old input, depending on whether we're new here
		if (Session::has('menu_id')) {
			$this->data['menu_id'] = Session::get('menu_id');
		} else if (Input::old('menu_id')) {
			$this->data['menu_id'] = Input::old('menu_id');
		}

		$this->data['action'] = 'add';
		return View::make($this->view('add-or-edit'), $this->data);
	}
public function add()
	{
		// Are we creating this object from the menu add wizard?
		// Toss the menu_id URL variable into the session instead
		if (Input::get('menu_id')) {
			return Redirect::to($this->uri('add'))->with('menu_id', Input::get('menu_id'));
		}
		// And grab the menu_id from the session or the old input, depending on whether we're new here
		if (Session::has('menu_id')) {
			$this->data['menu_id'] = Session::get('menu_id');
		} else if (Input::old('menu_id')) {
			$this->data['menu_id'] = Input::old('menu_id');
		}

		$this->data['action'] = 'add';
		return View::make($this->view('add-or-edit'), $this->data);
	}
public function add ( ) { // Are we creating this object from the menu add wizard? // Toss the menu_id URL variable into the session instead if ( Input :: get ( 'menu_id' ) ) { return Redirect :: to ( $ this -> uri ( 'add' ) ) -> with ( 'menu_id' , Input :: get ( 'menu_id' ) ) ; } // And grab the menu_id from the session or the old input, depending on whether we're new here if ( Session :: has ( 'menu_id' ) ) { $ this -> data [ 'menu_id' ] = Session :: get ( 'menu_id' ) ; } else if ( Input :: old ( 'menu_id' ) ) { $ this -> data [ 'menu_id' ] = Input :: old ( 'menu_id' ) ; } $ this -> data [ 'action' ] = 'add' ; return View :: make ( $ this -> view ( 'add-or-edit' ) , $ this -> data ) ; }
Show the form for adding.

Both add() and edit() use the same view:  add-or-edit

There are two ways of adding a new item.  One is from its index,
and the other is from the menu index's 'Add Link' wizard.

@return \Illuminate\Http\RedirectResponse|\Illuminate\View\View
Show the form for adding .