public function store(Request $request)
    {
        $this->authorize('store', Location::class);
        /** @noinspection PhpUndefinedMethodInspection */
        $request->validate(['name' => 'required|max:128']);
        $location = new Location();
        $location->team_id = $this->userContext()->team_id;
        $location->name = $request->name;
        $location->save();
        return fractal($location, new LocationTransformer())
            ->withResourceName('location')
            ->respond();
    }