Fix Laravel 5.5 compatibility issues - view helpers, collections, and auth routes
- Replace {{ url() }} with {{ url('/') }} in all blade templates to fix object-to-string conversion errors
- Update TeamStoreModel::selectTeamStoreGroupByCartKey() to use first() instead of get() for Laravel 5.5 Collections
- Fix TeamStoreController to access object properties directly instead of using array syntax [0]
- Update authentication routes to use Laravel 5.5 method names (showLoginForm, login, logout)
- Update login/register links from /auth/login to /login throughout views (navbar, app, auth pages)
- Verify cart, login, and register pages working with HTTP 200 status
This commit is contained in:
@@ -8,8 +8,14 @@
|
||||
<div class="row">
|
||||
<div class="col-md-12" >
|
||||
<ul class="breadcrumb">
|
||||
<li class=""><a href="{{url()}}">Home</a></li>
|
||||
<li class="active"> {{ $array_sports[0]->SportsName }} </li>
|
||||
<li class=""><a href="{{ url('/') }}">Home</a></li>
|
||||
<li class="active">
|
||||
@if($array_sports && $array_sports->count() > 0)
|
||||
{!! $array_sports->first()->SportsName !!}
|
||||
@else
|
||||
Category
|
||||
@endif
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -18,12 +24,12 @@
|
||||
@foreach ($row as $r)
|
||||
<div class="col-md-3 col-sm-6 col-xs-12 list-sport">
|
||||
<div class="thumb-border">
|
||||
<a href="{{ url() }}/{{ Request::path() }}/{{ $r->Id }}">
|
||||
<img src="{{ minio_url('uploads/images/sports-category/' . $r->Thumbnail) }}" alt="{{ $r->Category }}" class="image" />
|
||||
<a href="{{ url('/') }}/{{ Request::path() }}/{{ $r->Id ?? '' }}">
|
||||
<img src="{{ minio_url('uploads/images/sports-category/' . ($r->Thumbnail ?? 'default.png')) }}" alt="{{ $r->Category ?? 'Category' }}" class="image" />
|
||||
</a>
|
||||
</div>
|
||||
<div class="text-center">
|
||||
<h3 class="sports-title">{{ $r->Category }}</h3>
|
||||
<h3 class="sports-title">{{ $r->Category ?? 'Unknown' }}</h3>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
Reference in New Issue
Block a user