WIP #1

Merged
juan.zapata merged 10 commits from develop into main 2025-11-10 22:45:59 +00:00
3 changed files with 25 additions and 0 deletions
Showing only changes of commit 29eac5ab00 - Show all commits

View File

@ -21,6 +21,15 @@ public function index()
]);
}
public function show(Client $client)
{
$client->load('simCards:id,msisdn');
return ApiResponse::OK->response([
'data' => $client,
]);
}
public function store(ClientStoreRequest $request)
{
$client = Client::create($request->validated());

View File

@ -23,6 +23,13 @@ public function index()
]);
}
public function show(Packages $package)
{
return ApiResponse::OK->response([
'data' => $package,
]);
}
public function store(PackagesStoreRequest $request)
{
$validated = $request->validated();

View File

@ -24,6 +24,15 @@ public function index()
]);
}
public function show(SimCard $simCard)
{
$simCard->load('packSims.package:id,name');
return ApiResponse::OK->response([
'data' => $simCard,
]);
}
public function store(SimCardStoreRequest $request)
{
try {