|
@@ -4,6 +4,8 @@ namespace App\Providers;
|
|
|
|
|
|
use Illuminate\Support\Facades\Validator;
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
+use Tymon\JWTAuth\Exceptions\TokenExpiredException;
|
|
|
+use Tymon\JWTAuth\Exceptions\TokenInvalidException;
|
|
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
|
{
|
|
@@ -17,5 +19,42 @@ class AppServiceProvider extends ServiceProvider
|
|
|
Validator::extend('mobile', function ($attribute, $value, $parameters) {
|
|
|
return preg_match('/^1[3456789]{1}\d{9}$/', $value);
|
|
|
});
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
}
|