Multi-page form attempt I have just started playing around with L4 and would like to get some feedback on how I implemented a multi-page form

Here are my routes:

Route::model('appointment', 'Appointment');
Route::get('appointment/book_new/{appointment}', array('as' =&gt; 'booking-form', 'uses' =&gt; 'AppointmentBookingController@index') );
Route::post('appointment/book_new/verify/{appointment}', 'AppointmentBookingController@verify');
Route::post('appointment/book_new/success/{appointment}', 'AppointmentBookingController@success');


Here is my controller:

class AppointmentBookingController extends BaseController {

    public function index(Appointment $appt)
    {                   
        return View::make('appointment/bookings/book',  array('appt' =&gt; $appt));
    }

    public function verify(Appointment $appt){
        $fields = array('name', 'email', 'description');

        // Declare the rules for the form validation
        $rules = array(
            'name'        =&gt; 'required',
            'email'       =&gt; 'required|email',
            'description' =&gt; 'required',
        );

        // Create a new validator instance from our validation rules
        $validator = Validator::make(Input::all(), $rules);

        // If validation fails, we'll exit the operation now.
        if ($validator-&gt;fails())
        {           
            foreach($fields as $v)
            {
                Session::flash($v, Input::get($v));
            }           
            return View::make('appointment/bookings/book',  array('appt' =&gt; $appt, 'errors' =&gt; $validator-&gt;messages()));
        } else {
            Session::put('booking-form-index', Input::all());
            return View::make('/appointment/bookings/verify',  array('appt' =&gt; $appt));
        }
    }

    public function success(Appointment $appt){
        // validate, if valid save the booking.
            // don't do anything for now
            var_dump ( Session::get('booking-form-index') );
            exit();

            // display the success page
            // return View::make('/appointment/bookings/success',  array('appt' =&gt; $appt)); 
}


Here are my views ( book.blade.php )

{{ Form::open(array('url' =&gt; '/appointment/book_new/verify/'. $appt-&gt;id )) }}

&lt;!-- CSRF Token --&gt;
{{ Form::token() }}

&lt;!-- Name --&gt;
&lt;div&gt;
    {{ Form::text('name', Session::get('name'), array('placeholder' =&gt; 'Name')) }}  
    {{ $errors-&gt;first('name') }}
&lt;/div&gt;

&lt;!-- Email --&gt;
&lt;div &gt;
    {{ Form::text('email', Session::get('email'), array('placeholder' =&gt; 'email@email.com')) }}  
    {{ $errors-&gt;first('email') }}
&lt;/div&gt;
&lt;!-- Description --&gt;
&lt;div &gt;
    {{  Form::textarea ('description') }}
    {{ $errors-&gt;first('description') }}
&lt;/div&gt;

&lt;!-- Form actions --&gt;
{{ Form::submit('Click Me!') }}

{{ Form::close() }}


verify.blade.php

{{ Form::open(array('url' =&gt; 'appointment/book_new/success/' . $appt-&gt;id )) }}

{{  Form::text('validate') }}

{{ Form::submit('Click Me!') }}   

{{ Form::close() }}


success.blade.php

Success
Looks pretty standard to me! The only minor tweak I would make just for readability is to eliminate the else in AppointmentBookingController::verify(); since you return in the if, the else block is not necessary, and using guard clauses like this will (arguably) make your code more readable. See Invert "if" statement to reduce nesting.