restore composer.json, add mysqli extension
This commit is contained in:
43
app/Http/Requests/Dashboard/Page/Update.php
Executable file
43
app/Http/Requests/Dashboard/Page/Update.php
Executable file
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\Dashboard\Page;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class Update extends FormRequest
|
||||
{
|
||||
/**
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
if ($this->isMethod('get')) {
|
||||
return [];
|
||||
}
|
||||
|
||||
return [
|
||||
'name' => 'required|array',
|
||||
'name.*' => 'required|string',
|
||||
'body' => 'required|array',
|
||||
'body.*' => 'required|string',
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function getName(): array
|
||||
{
|
||||
return $this->get('name');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function getBody(): array
|
||||
{
|
||||
return $this->get('body');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user