date localization

This commit is contained in:
merdan 2019-12-23 17:23:13 +05:00
parent 323ab57f11
commit c686f41f09
1 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@ use Auth;
use Carbon\Carbon;
use Cookie;
use Illuminate\Http\Request;
use Illuminate\Support\Str;
use Mail;
use Validator;
@ -45,7 +46,7 @@ class EventViewController extends Controller
$ticket_dates = array();
foreach ($tickets as $ticket){
$date = $ticket->ticket_date->format('d M');
$date = Str::limit($ticket->ticket_date->formatLocalized('%d %B'),6);
$ticket_dates[$date][] = $ticket;
}