2018-11-02 11:54:46 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Requests\Client;
|
|
|
|
|
|
|
|
use App\Http\Requests\Request;
|
|
|
|
|
2018-11-03 02:01:40 +01:00
|
|
|
class EditClientRequest extends Request
|
2018-11-02 11:54:46 +01:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Determine if the user is authorized to make this request.
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
|
|
|
|
public function authorize()
|
|
|
|
{
|
2018-11-03 02:01:40 +01:00
|
|
|
return true;
|
|
|
|
// return ! auth()->user(); //todo permissions
|
2018-11-02 11:54:46 +01:00
|
|
|
}
|
|
|
|
|
2018-11-10 14:24:36 +01:00
|
|
|
public function sanitize()
|
|
|
|
{
|
|
|
|
$input = $this->all();
|
|
|
|
|
|
|
|
//$input['id'] = $this->encodePrimaryKey($input['id']);
|
|
|
|
|
|
|
|
//$this->replace($input);
|
|
|
|
|
|
|
|
return $this->all();
|
|
|
|
}
|
2018-11-02 11:54:46 +01:00
|
|
|
|
|
|
|
}
|