Files
wticreatorstudio/Modules/WTIJobBoard/Http/Requests/JobRequestShipment.php
T
2024-02-12 22:54:20 -05:00

41 lines
784 B
PHP

<?php
namespace Modules\WTIJobBoard\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;
class JobRequestShipment extends FormRequest
{
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'job_request_id' => 'required',
'courier' => 'required',
'tracking_number' => 'required'
];
}
public function messages()
{
return [
];
}
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return !!auth()->id();
}
}