Skip to content

Commit

Permalink
token message
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Apr 25, 2018
1 parent b58c29a commit 50b3ff7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions app/Http/Requests/Module/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@
namespace App\Http\Requests\Module;

use App\Http\Requests\Request;
use Illuminate\Validation\Factory as ValidationFactory;
use App\Traits\Modules;
use Illuminate\Validation\Factory as ValidationFactory;

class Module extends Request
{
use Modules;

public function __construct(ValidationFactory $validationFactory)
public function __construct(ValidationFactory $validation)
{

$validationFactory->extend(
$validation->extend(
'check',
function ($attribute, $value, $parameters) {
return $this->checkToken($value);
},
trans('modules.invalid_token')
trans('messages.error.invalid_token')
);

}
Expand Down
1 change: 1 addition & 0 deletions resources/lang/en-GB/messages.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
'customer' => 'Error: User not created! :name already uses this email address.',
'no_file' => 'Error: No file selected!',
'last_category' => 'Error: Can not delete the last :type category!',
'invalid_token' => 'Error: The token entered is invalid!',
],
'warning' => [
'deleted' => 'Warning: You are not allowed to delete <b>:name</b> because it has :text related.',
Expand Down
1 change: 0 additions & 1 deletion resources/lang/en-GB/modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

'title' => 'API Token',
'api_token' => 'Token',
'invalid_token' => 'Sorry, it invalid token validation!',
'top_paid' => 'Top Paid',
'new' => 'New',
'top_free' => 'Top Free',
Expand Down

0 comments on commit 50b3ff7

Please sign in to comment.