feat(catalog,contacts): fresh catalog and contacts implementation

This commit is contained in:
Darko Gjorgjijoski
2026-08-20 21:50:34 +02:00
parent b5b4e2c978
commit a93d13a188
34 changed files with 2941 additions and 0 deletions
@@ -0,0 +1,23 @@
<?php
namespace App\Domains\Contacts\Http\Controllers;
use App\Domains\Contacts\Http\Resources\CountryResource;
use App\Domains\Contacts\Models\Country;
use App\Platform\Http\Controller;
use Illuminate\Http\Request;
/**
* The country reference list: every row, unfiltered and unpaginated.
*
* Mounted twice — once on the company API, once inside the customer portal —
* which is why the request is accepted and never read. Neither caller narrows
* the list; both want the whole thing to fill a picker.
*/
class CountriesController extends Controller
{
public function __invoke(Request $request)
{
return CountryResource::collection(Country::all());
}
}