added authorize to form request abstract

This commit is contained in:
Denis Duliçi
2021-07-01 10:50:24 +03:00
parent 1a0642f6a6
commit 500ff054db
37 changed files with 16 additions and 348 deletions

View File

@ -6,16 +6,6 @@ use App\Abstracts\Http\FormRequest;
class BulkAction extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*

View File

@ -6,16 +6,6 @@ use Illuminate\Foundation\Http\FormRequest;
class Company extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*

View File

@ -6,16 +6,6 @@ use App\Abstracts\Http\FormRequest;
class Contact extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*

View File

@ -6,16 +6,6 @@ use App\Abstracts\Http\FormRequest;
class Dashboard extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*

View File

@ -6,16 +6,6 @@ use Illuminate\Foundation\Http\FormRequest;
class Import extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*

View File

@ -6,16 +6,6 @@ use App\Abstracts\Http\FormRequest;
class Item extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*

View File

@ -6,16 +6,6 @@ use App\Abstracts\Http\FormRequest;
class ItemTax extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*

View File

@ -6,16 +6,6 @@ use App\Abstracts\Http\FormRequest;
class Notification extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*

View File

@ -6,12 +6,11 @@ use App\Abstracts\Http\FormRequest;
class Report extends FormRequest
{
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [

View File

@ -6,16 +6,6 @@ use App\Abstracts\Http\FormRequest;
class TotalItem extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*

View File

@ -6,16 +6,6 @@ use App\Abstracts\Http\FormRequest;
class Widget extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*