Alimentalos/Backend

View on GitHub
app/Http/Requests/Resource/TokenRequest.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

namespace App\Http\Requests\Resource;

use App\Http\Requests\AuthorizedRequest;

class TokenRequest extends AuthorizedRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return authenticated()->can('update', $this->route('resource'));
    }
}