mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
admin base table and form
This commit is contained in:
@@ -5,6 +5,7 @@ namespace App\Http\Controllers;
|
||||
use App\Http\Resources\UserResource;
|
||||
use App\Repositories\UserRepository;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
|
||||
class UserController extends Controller
|
||||
{
|
||||
@@ -100,4 +101,12 @@ class UserController extends Controller
|
||||
$result = $this->repository->listClass();
|
||||
return $this->success($result);
|
||||
}
|
||||
|
||||
public function base()
|
||||
{
|
||||
$id = Auth::id();
|
||||
$result = $this->repository->getBase($id);
|
||||
$resource = new UserResource($result);
|
||||
return $this->success($resource);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user