Http/Requests/InstallModuleRequest.php
<?php namespace Modules\Workshop\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class InstallModuleRequest extends FormRequest
{
public function rules()
{
return [
'vendorName' => 'required',
];
}
public function authorize()
{
return true;
}
public function messages()
{
return [];
}
}