New Controller

Help for integrating the Laravel package
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!
BrianMecler
Posts: 41
Joined: 03 Jun 2023, 17:30

New Controller

Post by BrianMecler » 13 Jul 2023, 23:37

Hello,

Laravel Framework 10.13.1, php8.1-fpm, aimeos/aimeos-laravel 2023.04.2

1) I am working on implementing Socialite currently. I have my own theme in Aimeos, would best practice be to add new controllers somewhere inside my theme at /packages/<my-theme>/, add new controllers in /app/Http/Controllers/, or follow some other method?

2) I added the additional login buttons for Google, Facebook, etc in /resources/views/auth/login.blade.php. Is this best practice or should I be mimicking this path in /packages/<my-theme>/, or somewhere other?

Thank you,

User avatar
aimeos
Administrator
Posts: 7907
Joined: 01 Jan 1970, 00:00

Re: New Controller

Post by aimeos » 14 Jul 2023, 06:28

BrianMecler wrote: 13 Jul 2023, 23:37 1) I am working on implementing Socialite currently. I have my own theme in Aimeos, would best practice be to add new controllers somewhere inside my theme at /packages/<my-theme>/, add new controllers in /app/Http/Controllers/, or follow some other method?
Laravel controllers must be in the ./app/Controller/ directory.
BrianMecler wrote: 13 Jul 2023, 23:37 2) I added the additional login buttons for Google, Facebook, etc in /resources/views/auth/login.blade.php. Is this best practice or should I be mimicking this path in /packages/<my-theme>/, or somewhere other?
Authentication is handled by Laravel and thus, ./resources/views/auth/login.blade.php is the right file.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply