diff --git a/app/Http/Controllers/Api/Web/AlexaController.php b/app/Http/Controllers/Api/Web/AlexaController.php
index 557ff775..700dd6bb 100644
--- a/app/Http/Controllers/Api/Web/AlexaController.php
+++ b/app/Http/Controllers/Api/Web/AlexaController.php
@@ -2,6 +2,7 @@
namespace App\Http\Controllers\Api\Web;
+use Illuminate\Support\Arr;
use App\Http\Controllers\Controller;
use App\Models\AlexaSession;
use App\Models\Track;
@@ -146,7 +147,7 @@ class AlexaController extends Controller
public function play()
{
- $track = array_first(Track::popular(1));
+ $track = Arr::first(Track::popular(1));
$this->session->put('current_position', 1);
$this->session->put('track_id', $track['id']);
diff --git a/app/Http/Controllers/Api/Web/StatsController.php b/app/Http/Controllers/Api/Web/StatsController.php
index bd248fc8..68d0091a 100644
--- a/app/Http/Controllers/Api/Web/StatsController.php
+++ b/app/Http/Controllers/Api/Web/StatsController.php
@@ -20,6 +20,7 @@
namespace App\Http\Controllers\Api\Web;
+use Illuminate\Support\Str;
use App\Http\Controllers\ApiControllerBase;
use App\Models\ResourceLogItem;
use App\Models\Track;
@@ -87,12 +88,12 @@ class StatsController extends ApiControllerBase
foreach ($playsArray as $timeOffet => $plays) {
if ($hourly) {
$set = [
- 'hours' => $timeOffet.' '.str_plural('hour', $timeOffet),
+ 'hours' => $timeOffet.' '.Str::plural('hour', $timeOffet),
'plays' => $plays,
];
} else {
$set = [
- 'days' => $timeOffet.' '.str_plural('day', $timeOffet),
+ 'days' => $timeOffet.' '.Str::plural('day', $timeOffet),
'plays' => $plays,
];
}
diff --git a/resources/views/tracks/show.blade.php b/resources/views/tracks/show.blade.php
index 0db82f5d..7c64377b 100644
--- a/resources/views/tracks/show.blade.php
+++ b/resources/views/tracks/show.blade.php
@@ -19,7 +19,7 @@
@extends('shared._app_layout')
@section('title'){{ $track->title }} - {{ $track->user->display_name }} | @endsection
-@section('description'){{ str_limit($track->description, $limit = 200, $end = '...') }}@endsection
+@section('description'){{ Str::limit($track->description, $limit = 200, $end = '...') }}@endsection
@section('metadata')
@@ -28,7 +28,7 @@
-
+
@@ -39,7 +39,7 @@
-
+