mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 05:32:39 +01:00
b989cf82b7
* working on js localizations * remove dependencies * Pad Hashes to at least 10 characters in length * Inject JS translations into front end dynamically * Implement VueJS for Client Edit Page with reactivity * Conditionally hide rows if not enabled (custom_value) * Split client template into smaller components * implementing ui buttons * CRUD cycles of a client * Working on Client CRUD - Integrity constraint issues
32 lines
553 B
PHP
32 lines
553 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Client;
|
|
|
|
use App\Http\Requests\Request;
|
|
|
|
class EditClientRequest extends Request
|
|
{
|
|
/**
|
|
* Determine if the user is authorized to make this request.
|
|
*
|
|
* @return bool
|
|
*/
|
|
|
|
public function authorize()
|
|
{
|
|
return true;
|
|
// return ! auth()->user(); //todo permissions
|
|
}
|
|
|
|
public function sanitize()
|
|
{
|
|
$input = $this->all();
|
|
|
|
//$input['id'] = $this->encodePrimaryKey($input['id']);
|
|
|
|
//$this->replace($input);
|
|
|
|
return $this->all();
|
|
}
|
|
|
|
} |