Replace deprecated array and string helpers
Laravel recommends using the `Str` and `Arr` class methods directly instead of the respective helper functions. These helper functions are deprecated in Laravel 5.8 and removed in Laravel 6.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Api\v1;
|
||||
|
||||
use Illuminate\Support\Str;
|
||||
use App\Http\Controllers\Controller;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
@@ -34,8 +35,8 @@ class ApiExceptAuthController extends Controller
|
||||
}
|
||||
|
||||
$url = $this->request->input('url');
|
||||
if (! str_is('*/', $url)) {
|
||||
$url = str_finish($url, '/');
|
||||
if (! Str::is('*/', $url)) {
|
||||
$url = Str::finish($url, '/');
|
||||
}
|
||||
|
||||
$url = $url.'api/v1/helpdesk/check-url';
|
||||
|
Reference in New Issue
Block a user