change command signature #23
@@ -13,7 +13,7 @@ class EncodePolyLineCommand extends Command
|
|||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $signature = 'app:encode-poly-line-command';
|
protected $signature = 'polyline:encode';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The console command description.
|
* The console command description.
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ class UpdateRequest extends FormRequest
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
function (Validator $validator) {
|
function (Validator $validator) {
|
||||||
if (strtotime($this->violation->exit_time) < strtotime($this->enter_time)) {
|
if (strtotime($this->enter_time) < strtotime($this->violation->exit_time)) {
|
||||||
$validator->errors()->add(
|
$validator->errors()->add(
|
||||||
'time',
|
'time',
|
||||||
'زمان پایان ماموریت باید بعد از زمان شروع ماموریت باشد.'
|
'زمان پایان ماموریت باید بعد از زمان شروع ماموریت باشد.'
|
||||||
|
|||||||
Reference in New Issue
Block a user