aimeos/ai-controller-frontend
Laravel frontend controller for Aimeos: plug the shop into your app with ready-made product, catalog, basket and checkout pages plus search, customer and order handling. Integrates with Aimeos core for fast, scalable e-commerce.
This package provides the frontend controller layer for the Aimeos e-commerce suite, handling request routing, view rendering, and business logic for customer-facing operations. To start:
aimeos/aimeos-laravel) as it includes ai-controller-frontend as a dependency.php artisan vendor:publish --provider="Aimeos\Shop\ServiceProvider".php artisan migrate./shop (default) or check php artisan route:list | grep shop.
First use case:Displaying a product list — {{ Aimeos::controller()->get( 'catalog/lists' ) }} in a Blade template.Aimeos::controller()->get($action) in Blade to embed components like catalog/lists, basket/mini, account/profile.Aimeos\Shop\Controller\frontend\* classes and overriding methods (e.g., store, update) to inject custom logic.['param' => 'value'] in Aimeos::controller()->get('action', $params).resources/views/vendor/shop/; Aimeos uses a minimal layer over Laravel’s view system.SHOP_DEBUG=1 in .env to log controller actions and views being rendered.shop* or account* to prevent collision with Aimeos routes defined in routes/shop.php.php artisan view:clear && php artisan config:clear./en/catalog/lists) — ensure app_locale middleware handles redirection or use Aimeos::context()->getLocale() for explicit control.config/shop.php entries like controller/frontend/action arrays or use Aimeos\Controller\Frontend\abantecart::add() via event listeners (aimeos.controller.frontend.before) for hooks.How can I help you explore Laravel packages today?