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:
Frank John Begornia
2026-01-14 21:44:34 +08:00
parent 56f2f19422
commit 59fc920498
37 changed files with 4224 additions and 1536 deletions

View File

@@ -27,8 +27,8 @@ class MainModel extends Model {
function selectSportsId($url) //
{
$i = DB::table('sports')->where('URL', '=', $url)->get();
$id = $i[0]->Id;
$i = DB::table('sports')->where('URL', '=', $url)->first();
$id = $i->Id;
$k = DB::table('templates')->where('SportsId', '=', $id)
->where('IsActive','=', "TRUE")
@@ -146,8 +146,8 @@ class MainModel extends Model {
function selectTemplatesByCategory($url, $cat) //
{
$i = DB::table('sports')->where('URL', '=', $url)->get();
$id = $i[0]->Id;
$i = DB::table('sports')->where('URL', '=', $url)->first();
$id = $i->Id;
$k = DB::table('templates')->where('SportsId', '=', $id)
->where('Category','=', $cat)