how can I extend "JqadmController.php" controller
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
- ahmed31916
- Advanced
- Posts: 148
- Joined: 14 Apr 2022, 12:15
how can I extend "JqadmController.php" controller
how can I extend "aimeos-laravel\src\Aimeos\Shop\Controller\JqadmController.php" controller?
Re: how can I extend "JqadmController.php" controller
Don't know if Laravel offers a way to overwrite controller actions from packages.
You may create a new controller, extend from JQAdmController, overwrite what you need and change the routes to your new controller. To disable the package routes for the JQAdmController, you need to set this in your ./config/shop.php (https://github.com/aimeos/aimeos-larave ... op.php#L15):
Then, add this routes in your ./routes/web.php with your new controller:
https://github.com/aimeos/aimeos-larave ... hp#L18-L60
You may create a new controller, extend from JQAdmController, overwrite what you need and change the routes to your new controller. To disable the package routes for the JQAdmController, you need to set this in your ./config/shop.php (https://github.com/aimeos/aimeos-larave ... op.php#L15):
Code: Select all
'routes' => [
// other routes
'jqadm' => false,
// other routes
],
https://github.com/aimeos/aimeos-larave ... hp#L18-L60
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star