clean tests & other things
This commit is contained in:
@@ -11,6 +11,13 @@ use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
class UserController extends Controller
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
$this->authorize('viewAny', User::class);
|
||||
|
||||
return UserResource::collection(User::all());
|
||||
}
|
||||
|
||||
public function store()
|
||||
{
|
||||
$this->authorize('create', User::class);
|
||||
|
||||
Reference in New Issue
Block a user