lundi 29 février 2016

Single route for multiple pages using Blade - Laravel

I'm trying to implement a system where I use a single route in laravel for different views.

So a route http://ift.tt/1TKfvrU will show 4 views depending on what step the customer is on the checkout process.

At the moment I've managed to do this with 2 views;

I have a main checkout.blade.php and then inside it I have the below;

@if(!Session::has('qwick'))
    @include('pages.checkout-nlog')
@else
    @include('pages.checkout-log')
@endif

the code above shows 2 views depending on whether the user is logged in or not.

I have 2 other blade views I need to somehow show.

Is this possible?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1XUO7Il
via IFTTT

Aucun commentaire:

Enregistrer un commentaire