restore composer.json, add mysqli extension
This commit is contained in:
25
app/Http/Requests/Api/Favorites/Request.php
Executable file
25
app/Http/Requests/Api/Favorites/Request.php
Executable file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\Api\Favorites;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class Request extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
'id' => 'required'
|
||||
];
|
||||
}
|
||||
|
||||
public function getID(): int
|
||||
{
|
||||
return $this->get('id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user