token message
This commit is contained in:
parent
b58c29a648
commit
50b3ff7844
@ -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')
|
||||
);
|
||||
|
||||
}
|
||||
|
@ -15,6 +15,7 @@ return [
|
||||
'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.',
|
||||
|
@ -4,7 +4,6 @@ return [
|
||||
|
||||
'title' => 'API Token',
|
||||
'api_token' => 'Token',
|
||||
'invalid_token' => 'Sorry, it invalid token validation!',
|
||||
'top_paid' => 'Top Paid',
|
||||
'new' => 'New',
|
||||
'top_free' => 'Top Free',
|
||||
|
Loading…
x
Reference in New Issue
Block a user