for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class ValidateChanRequest extends FormRequest
{
public function authorize()
return true;
}
public function rules()
$chan = $this->route('chan');
$chan
return [
'group' => 'required|max:50',
'gid' => 'required|max:50',
'date' => 'required|max:50',
'time' => 'required|max:50',
];