Made a show view for groups

This commit is contained in:
mwalbeck 2016-10-29 22:23:54 +02:00
parent b98def63fb
commit b00f436e10
4 changed files with 43 additions and 2 deletions
app/Http/Controllers

View file

@ -15,6 +15,13 @@ class GroupController extends Controller
$this->middleware('auth');
}
public function showGroup(Group $group)
{
$this->authorize('view', $group);
return view('groups.show', compact('group'));
}
public function showGroups()
{
$this->authorize('viewall', Group::class);