ComponentCheckoutRequest.php
Go to the documentation of this file.
1 <?php
2 
3 namespace App\Http\Requests;
4 
6 
8 {
14  public function authorize()
15  {
16  return true;
17  }
18 
24  public function rules()
25  {
26  return [
27  "asset_id" => 'required',
28  "assigned_qty" => 'required|numeric|min:1',
29  ];
30  }
31 }
rules()
Get the validation rules that apply to the request.
authorize()
Determine if the user is authorized to make this request.