kambuku/app/Http/Requests/AdminNewSubCategoryRequest.php
/**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
Determine if the user is authorized to make this request.
@return bool
Determine if the user is authorized to make this request . @return bool
public function authorize()
    {
        if (Auth::user()['user_type_id'] == '4')
        {
            return true;
        }
        else
        {
            return false;
        }
    }
public function authorize ( ) { if ( Auth :: user ( ) [ 'user_type_id' ] == '4' ) { return true ; } else { return false ; } }
Determine if the user is authorized to make this request.
Determine if the user is authorized to make this request .