Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Commit

Permalink
Added Vue component to filter reports. Fixes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
straube committed Jul 10, 2020
1 parent c3dde8a commit 0eb3ce7
Show file tree
Hide file tree
Showing 7 changed files with 722 additions and 87 deletions.
6 changes: 6 additions & 0 deletions app/Http/Controllers/Api/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use App\User;
use App\Http\Controllers\Controller;
use App\Http\Requests\UserRequest;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Password;

/**
Expand All @@ -25,6 +26,11 @@ public function __construct()
$this->middleware('auth');
}

public function index(): Collection
{
return User::orderBy('name')->get();
}

public function store(UserRequest $request): User
{
$user = User::create($request->validated());
Expand Down
Loading

0 comments on commit 0eb3ce7

Please sign in to comment.