clean tests & other things

This commit is contained in:
2020-03-25 20:11:29 +01:00
parent 11511039e9
commit 7e5d022aa2
27 changed files with 1497 additions and 187 deletions

View File

@@ -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);