$params = [ 'limit' => Input::get('limit'), 'page' => Input::get('page'), 'manufacturer' => Input::get('manufacturer'), 'filter' => Input::get('filter'), ]; if (empty($params['page'])) { $params['page'] = 1; } if (empty($params['limit'])) { $params['limit'] = 24; } $manufacturer = Manufacturer::where('alias', $alias)->first(); $products = $manufacturer->products($params); $total = $manufacturer->getTotalProducts(); $pages = ceil($total / $params['limit']); if (empty($manufacturer->title)) { $manufacturer->title = $manufacturer->name; } if ($params['page'] > 1) { $manufacturer->title .= ' - Страница ' . $params['page']; } $highPrice = '1250'; $lowPrice = '36'; $ratingValue = '4.21'; $reviewCount ='12157'; return view('site.manufacturers.manufacturer', [ 'manufacturer' => $manufacturer, 'products' => $products, 'total' => $total,
"Call to a member function products() on null"
Key | Value |
TMPDIR | "/home/jd408155/.system/tmp"
|
PHPRC | "/home/jd408155/.system/php/www.fitnessmir.com.ua.ini"
|
TEMP | "/home/jd408155/.system/tmp"
|
PATH | "/usr/local/bin:/usr/bin:/bin"
|
PWD | "/home/jd408155/fitnessmir.com.ua/www/"
|
SERVING_HOST_INFO | "apache:php71:1889699:408155:www.fitnessmir.com.ua;"
|
SHLVL | "0"
|
TMP | "/home/jd408155/.system/tmp"
|
HTTP_ACCEPT | "*/*"
|
HTTP_CONNECTION | "close"
|
CONTENT_LENGTH | "0"
|
HTTP_HOST | "fitnessmir.com.ua"
|
HTTP_USER_AGENT | "claudebot"
|
HTTP_GEOIP_COUNTRY_CODE | "US"
|
HTTP_SSL | "1"
|
HTTP_X_FORWARDED_PROTO | "https"
|
HTTP_X_INTERNAL_REAL_IP | "54.81.157.133"
|
REDIRECT_HTTPS | "on"
|
REDIRECT_UNIQUE_ID | "ZgXkV02slTW5KcC1ThaDIQAAAOM"
|
REDIRECT_SCRIPT_URL | "/manufacturer/smooth_fitness/"
|
REDIRECT_SCRIPT_URI | "https://fitnessmir.com.ua/manufacturer/smooth_fitness/"
|
REDIRECT_vhost_id | "1889699"
|
REDIRECT_account_id | "408155"
|
REDIRECT_PWD | "/home/jd408155/fitnessmir.com.ua/www/"
|
REDIRECT_TMP | "/home/jd408155/.system/tmp"
|
REDIRECT_TEMP | "/home/jd408155/.system/tmp"
|
REDIRECT_STATUS | "200"
|
HTTPS | "on"
|
UNIQUE_ID | "ZgXkV02slTW5KcC1ThaDIQAAAOM"
|
SCRIPT_URL | "/manufacturer/smooth_fitness/"
|
SCRIPT_URI | "https://fitnessmir.com.ua/manufacturer/smooth_fitness/"
|
vhost_id | "1889699"
|
account_id | "408155"
|
SERVER_SIGNATURE | "" |
SERVER_SOFTWARE | "Apache"
|
SERVER_NAME | "fitnessmir.com.ua"
|
SERVER_ADDR | "127.0.0.1"
|
SERVER_PORT | "443"
|
REMOTE_ADDR | "54.81.157.133"
|
DOCUMENT_ROOT | "/home/jd408155/fitnessmir.com.ua/www/"
|
REQUEST_SCHEME | "https"
|
CONTEXT_PREFIX | "" |
CONTEXT_DOCUMENT_ROOT | "/home/jd408155/fitnessmir.com.ua/www/"
|
SERVER_ADMIN | "server@admin.com"
|
SCRIPT_FILENAME | "/home/jd408155/fitnessmir.com.ua/www/server.php"
|
REMOTE_PORT | "27394"
|
REDIRECT_URL | "/manufacturer/smooth_fitness/"
|
SERVER_PROTOCOL | "HTTP/1.0"
|
REQUEST_METHOD | "GET"
|
QUERY_STRING | "" |
REQUEST_URI | "/manufacturer/smooth_fitness/"
|
SCRIPT_NAME | "/server.php"
|
PHP_SELF | "/server.php"
|
REQUEST_TIME_FLOAT | 1711662167.4487
|
REQUEST_TIME | 1711662167
|
APP_NAME | "Laravel"
|
APP_ENV | "local"
|
APP_KEY | "base64:HwR+a/PjRcPnU7aL/1LPBVvj7plKfpiAi9kBAxDgQYg="
|
APP_DEBUG | "true"
|
APP_LOG_LEVEL | "debug"
|
APP_URL | "https://fitnessmir.com.ua"
|
DB_CONNECTION | "mysql"
|
DB_HOST | "jd408155.mysql.tools"
|
DB_PORT | "3306"
|
DB_DATABASE | "jd408155_db"
|
DB_USERNAME | "jd408155_db"
|
DB_PASSWORD | "uh8d3gBz"
|
BROADCAST_DRIVER | "log"
|
CACHE_DRIVER | "file"
|
SESSION_DRIVER | "file"
|
SESSION_LIFETIME | "120"
|
QUEUE_DRIVER | "sync"
|
REDIS_HOST | "127.0.0.1"
|
REDIS_PASSWORD | "null"
|
REDIS_PORT | "6379"
|
MAIL_DRIVER | "sendmail"
|
MAIL_HOST | "smtp.mailtrap.io"
|
MAIL_PORT | "2525"
|
MAIL_USERNAME | "null"
|
MAIL_PASSWORD | "null"
|
MAIL_ENCRYPTION | "null"
|
PUSHER_APP_ID | "" |
PUSHER_APP_KEY | "" |
PUSHER_APP_SECRET | "" |
PUSHER_APP_CLUSTER | "mt1"
|
Key | Value |
APP_NAME | "Laravel"
|
APP_ENV | "local"
|
APP_KEY | "base64:HwR+a/PjRcPnU7aL/1LPBVvj7plKfpiAi9kBAxDgQYg="
|
APP_DEBUG | "true"
|
APP_LOG_LEVEL | "debug"
|
APP_URL | "https://fitnessmir.com.ua"
|
DB_CONNECTION | "mysql"
|
DB_HOST | "jd408155.mysql.tools"
|
DB_PORT | "3306"
|
DB_DATABASE | "jd408155_db"
|
DB_USERNAME | "jd408155_db"
|
DB_PASSWORD | "uh8d3gBz"
|
BROADCAST_DRIVER | "log"
|
CACHE_DRIVER | "file"
|
SESSION_DRIVER | "file"
|
SESSION_LIFETIME | "120"
|
QUEUE_DRIVER | "sync"
|
REDIS_HOST | "127.0.0.1"
|
REDIS_PASSWORD | "null"
|
REDIS_PORT | "6379"
|
MAIL_DRIVER | "sendmail"
|
MAIL_HOST | "smtp.mailtrap.io"
|
MAIL_PORT | "2525"
|
MAIL_USERNAME | "null"
|
MAIL_PASSWORD | "null"
|
MAIL_ENCRYPTION | "null"
|
PUSHER_APP_ID | "" |
PUSHER_APP_KEY | "" |
PUSHER_APP_SECRET | "" |
PUSHER_APP_CLUSTER | "mt1"
|