make auth service global

This commit is contained in:
2026-05-09 09:09:49 +03:30
parent e4f7b96b92
commit c2328ec666
8 changed files with 58 additions and 13 deletions

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Admin\Controllers;
use App\Admin\Resources\ExpertResource;
use App\Http\Controllers\Controller;
use App\Traits\ApiResponse;
use Illuminate\Http\JsonResponse;
use Illuminate\Support\Facades\Auth;
class ProfileController extends Controller
{
use ApiResponse;
public function info(): JsonResponse
{
return $this->successResponse(new ExpertResource(Auth::user()));
}
}