moved roles to a separate database and added code to make updates
This commit is contained in:
parent
985f339725
commit
836ef8f1f6
14 changed files with 317 additions and 21 deletions
15
app/Http/Controllers/RoleController.php
Normal file
15
app/Http/Controllers/RoleController.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Role;
|
||||
|
||||
class RoleController extends Controller
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
$roles = Role::all();
|
||||
|
||||
return response()->json(['data' => $roles]);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue