Use Illuminate or Laravel Routing, Controllers & Eloquent Relationships in PrestaShop

Written by Jigesh Raval on September 25, 2017

I always found PrestaShop is a great system to work with, however, one of the drawback of PrestaShop is generating custom URLs. I know, you would say we can do it via module front controller which i find really tedious.

I was wondering how good it would be to use Laravel’s routing into PrestaShop ? You may aware that Laravel use Illuminate for routing. Don’t say me it use symfony for routing. No it’s not.

Below are the steps that will add custom routing ability to your PrestaShop store.

Of course, this small application will help you to create custom controllers as well. Believe me they work faster than default Presta.

Install it via github https://github.com/ravaljigesh/prestolara

What are the flavors added into PrestaShop ?

  • Custom and Easy Routing (https://laravel.com/docs/5.5/routing)
  • Eloquent Relationships (https://laravel.com/docs/5.5/eloquent-relationships)
  • Database Fluent Queries (https://laravel.com/docs/5.5/queries)
  • Laravel Controllers (https://laravel.com/docs/5.5/controllers)

All this works along with Default PrestaShop functions.

You can still access $this->context into laravel controllers.

For any question or queries do write in below comment box.

Leave a Reply

Your email address will not be published. Required fields are marked *