19 lines
374 B
PHP
19 lines
374 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests;
|
|
|
|
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',
|
|
]);
|
|
}
|
|
}
|