16 lines
304 B
PHP
16 lines
304 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use Illuminate\Http\Client\Request;
|
|
use Illuminate\Http\JsonResponse;
|
|
use Illuminate\Support\Facades\Auth;
|
|
|
|
class InfoController extends Controller
|
|
{
|
|
public function info(): JsonResponse
|
|
{
|
|
return new JsonResponse(['User' => Auth::user()]);
|
|
}
|
|
}
|