You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
548 B
29 lines
548 B
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Models\User;
|
|
use App\Models\Role;
|
|
use App\Models\Permission;
|
|
use App\Traits\Authorizable;
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Support\Facades\Auth;
|
|
|
|
class UserController extends Controller
|
|
{
|
|
// use Authorizable;
|
|
|
|
public function index() {
|
|
return response()->json([
|
|
'name' => 'Abigail',
|
|
'state' => 'CA',
|
|
]);
|
|
}
|
|
|
|
public function info() {
|
|
return response()->json([
|
|
'name' => 'Tang Moc',
|
|
'state' => 'HN',
|
|
]);
|
|
}
|
|
}
|
|
|