Moved site controllers to subfolder Website

This commit is contained in:
amikhaylov
2026-05-19 18:18:20 +03:00
parent 08cb7ef9c0
commit 50ce65cc46
9 changed files with 26 additions and 16 deletions
@@ -0,0 +1,23 @@
<?php
namespace App\Http\Controllers\Website;
use App\Http\Controllers\Controller;
use App\Models\Managers\ContactManager;
class ContactsController extends Controller
{
public function __construct(
private ContactManager $contactManager
) {
$this->addCssFile('contacts.css');
}
public function index()
{
$contacts = $this->contactManager->getContacts();
return $this->render('contacts')
->with(compact('contacts'));
}
}