generated from boboko/starter
setup for stoic settings, changes in legal pages to use core's store details and contact page to show contact info next to form
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
use Illuminate\Support\Facades\RateLimiter;
|
||||
use Illuminate\View\View;
|
||||
use Modules\Core\Store\Services\StoreDetailsService;
|
||||
use Throwable;
|
||||
|
||||
/**
|
||||
@@ -27,7 +28,12 @@ class ContactController extends Controller
|
||||
|
||||
public function index(string $locale): View
|
||||
{
|
||||
return view('contact');
|
||||
// Address and phone come from Store Details; the email is still
|
||||
// CONTACT_EMAIL until Store Details has an email field.
|
||||
return view('contact', [
|
||||
'store' => app(StoreDetailsService::class)->current(),
|
||||
'contactEmail' => config('services.contact.email'),
|
||||
]);
|
||||
}
|
||||
|
||||
public function send(string $locale, ContactRequest $request): RedirectResponse
|
||||
|
||||
Reference in New Issue
Block a user