mirror of
https://github.com/fergalmoran/OpnForm.git
synced 2026-01-23 17:06:35 +00:00
Initial commit
This commit is contained in:
21
app/Http/Requests/StoreFormRequest.php
Normal file
21
app/Http/Requests/StoreFormRequest.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use App\Models\Forms\Form;
|
||||
use Illuminate\Validation\Rule;
|
||||
|
||||
class StoreFormRequest extends UserFormRequest
|
||||
{
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return array_merge(parent::rules(), [// Info about database
|
||||
'workspace_id' => 'required|exists:workspaces,id',
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user