New 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!
-
- Posts: 41
- Joined: 03 Jun 2023, 17:30
New Controller
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,
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,
Re: New Controller
Laravel controllers must be in the ./app/Controller/ directory.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?
Authentication is handled by Laravel and thus, ./resources/views/auth/login.blade.php is the right file.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?
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