Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR)
Call to a member function images() on null Symfony\Component\Debug\Exception\FatalThrowableError thrown with message "Call to a member function images() on null" Stacktrace: #0 Symfony\Component\Debug\Exception\FatalThrowableError in /home/stellamarisimoveis/site/app/Http/Controllers/Frontend/PropertyController.php:31
Application frames (1) All frames (1)
0
Symfony
\
Component
\
Debug
\
Exception
\
FatalThrowableError
/
app
/
Http
/
Controllers
/
Frontend
/
PropertyController.php
31
/
home
/
stellamarisimoveis
/
site
/
app
/
Http
/
Controllers
/
Frontend
/
PropertyController.php
 
use Validator;
use Input, Redirect;
 
use App\Mail\PropertyMail;
use Exception;
use Illuminate\Support\Facades\Mail;
 
class PropertyController extends Controller {
 
    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function details($slug)
    {
        $data['page'] = Page::where('slug', 'quem-somos')->where('active', 1)->first();
        $data['property'] = Property::where('slug', $slug)->first();
        $data['images'] = $data['property']->images()->orderBy('order')->get();
        
        // imóveis relacionados
        $data['properties_related'] = Property::where('active', 1)->where('operation', $data['property']->operation)->where('properties_type_id', $data['property']->properties_type_id)->where('cities_id', $data['property']->cities_id)->whereNotIn('id', [$data['property']->id])->inRandomOrder()->take(4)->get();
 
        // seo
        $data['page']->seo_title = $data['property']->title;
        $data['page']->seo_description = $data['property']->description;
 
        return view('frontend.properties.details')->with($data);
    }
    
    public function send(Request $request)
    {
        $validator = Validator::make($request->all(), [
            'name'    => 'required',
            'email'   => 'required|email',
        ]);
 
        if($validator->fails()){
            return redirect(route('front.contact'))->withErrors($validator)->withInput();
Arguments
  1. "Call to a member function images() on null"
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
USER
"stellamarisimoveis"
HOME
"/home/stellamarisimoveis"
ORACLE_HOME
"/usr/lib/oracle/21/client64/lib"
SCRIPT_NAME
"/index.php"
REQUEST_URI
"/imovel/casa-para-locacao-110m2-com-2-quartos-em-dracena-sp-id-1125"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.1"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/imovel/casa-para-locacao-110m2-com-2-quartos-em-dracena-sp-id-1125"
REMOTE_PORT
"11996"
SCRIPT_FILENAME
"//home/stellamarisimoveis/www/index.php"
SERVER_ADMIN
"[email protected]"
CONTEXT_DOCUMENT_ROOT
"/home/stellamarisimoveis/www/"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"http"
DOCUMENT_ROOT
"/home/stellamarisimoveis/www/"
REMOTE_ADDR
"172.70.35.92"
SERVER_PORT
"80"
SERVER_ADDR
"191.6.210.150"
SERVER_NAME
"www.stellamarisimoveis.com.br"
SERVER_SOFTWARE
"Apache"
SERVER_SIGNATURE
""
LD_LIBRARY_PATH
"/usr/local/apache2/lib"
HTTP_MAX_FORWARDS
"10"
HTTP_CF_IPCOUNTRY
"US"
HTTP_CDN_LOOP
"cloudflare"
HTTP_CF_CONNECTING_IP
"44.222.249.19"
HTTP_USER_AGENT
"claudebot"
HTTP_ACCEPT
"*/*"
HTTP_CF_VISITOR
"{"scheme":"https"}"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_CF_RAY
"86b9f9ba29255b1d-IAD"
HTTP_X_FORWARDED_FOR
"44.222.249.19"
HTTP_ACCEPT_ENCODING
"gzip, br"
HTTP_CONNECTION
"Keep-Alive"
HTTP_HOST
"www.stellamarisimoveis.com.br"
SCRIPT_URI
"http://www.stellamarisimoveis.com.br/imovel/casa-para-locacao-110m2-com-2-quartos-em-dracena-sp-id-1125"
SCRIPT_URL
"/imovel/casa-para-locacao-110m2-com-2-quartos-em-dracena-sp-id-1125"
HTTP_AUTHORIZATION
""
UNIQUE_ID
"ZgXC5WWPuJruU6fQ1gnSvAAAANE"
REDIRECT_STATUS
"200"
REDIRECT_SCRIPT_URI
"http://www.stellamarisimoveis.com.br/imovel/casa-para-locacao-110m2-com-2-quartos-em-dracena-sp-id-1125"
REDIRECT_SCRIPT_URL
"/imovel/casa-para-locacao-110m2-com-2-quartos-em-dracena-sp-id-1125"
REDIRECT_HTTP_AUTHORIZATION
""
REDIRECT_UNIQUE_ID
"ZgXC5WWPuJruU6fQ1gnSvAAAANE"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1711653605.65
REQUEST_TIME
1711653605
argv
[]
argc
0
APP_NAME
"StellaMarisImoveis"
APP_ENV
"production"
APP_KEY
"base64:rTkPagiRyaysaeAOb6xBQd/R4QmtjPDr4SQv64pdeGQ="
APP_DEBUG
"true"
APP_URL
"https://www.stellamarisimoveis.com.br/"
APP_CMS
"controle/"
LOG_CHANNEL
"stack"
DB_CONNECTION
"mysql"
DB_HOST
"mysql24-farm2.uni5.net"
DB_PORT
"3306"
DB_DATABASE
"stellamarisimo"
DB_USERNAME
"stellamarisimo"
DB_PASSWORD
"wxo2ygza9ij8"
BROADCAST_DRIVER
"log"
CACHE_DRIVER
"file"
QUEUE_CONNECTION
"sync"
SESSION_DRIVER
"file"
SESSION_LIFETIME
"120"
REDIS_HOST
"127.0.0.1"
REDIS_PASSWORD
"null"
REDIS_PORT
"6379"
MAIL_DRIVER
"smtp"
MAIL_HOST
"in-v3.mailjet.com"
MAIL_PORT
"587"
MAIL_USERNAME
"2e00af0def1db1119f75d3b7359d7577"
MAIL_PASSWORD
"de8cddb978896ae3d1deb2ba2d559ffb"
MAIL_ENCRYPTION
"tls"
PUSHER_APP_ID
""
PUSHER_APP_KEY
""
PUSHER_APP_SECRET
""
PUSHER_APP_CLUSTER
"mt1"
MIX_PUSHER_APP_KEY
""
MIX_PUSHER_APP_CLUSTER
"mt1"
GRECAPTCHA_SITE_KEY
"6LeLHLsZAAAAAHLDtP9-osdkK56SAqqCC6_nZNiv"
GRECAPTCHA_SECRET_KEY
"6LeLHLsZAAAAANFSbXdVLeLksAgBGZmfhbpbZxj1"
Key Value
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
USER
"stellamarisimoveis"
HOME
"/home/stellamarisimoveis"
ORACLE_HOME
"/usr/lib/oracle/21/client64/lib"
SCRIPT_NAME
"/index.php"
REQUEST_URI
"/imovel/casa-para-locacao-110m2-com-2-quartos-em-dracena-sp-id-1125"
QUERY_STRING
""
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.1"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_URL
"/imovel/casa-para-locacao-110m2-com-2-quartos-em-dracena-sp-id-1125"
REMOTE_PORT
"11996"
SCRIPT_FILENAME
"//home/stellamarisimoveis/www/index.php"
SERVER_ADMIN
"[email protected]"
CONTEXT_DOCUMENT_ROOT
"/home/stellamarisimoveis/www/"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"http"
DOCUMENT_ROOT
"/home/stellamarisimoveis/www/"
REMOTE_ADDR
"172.70.35.92"
SERVER_PORT
"80"
SERVER_ADDR
"191.6.210.150"
SERVER_NAME
"www.stellamarisimoveis.com.br"
SERVER_SOFTWARE
"Apache"
SERVER_SIGNATURE
""
LD_LIBRARY_PATH
"/usr/local/apache2/lib"
HTTP_MAX_FORWARDS
"10"
HTTP_CF_IPCOUNTRY
"US"
HTTP_CDN_LOOP
"cloudflare"
HTTP_CF_CONNECTING_IP
"44.222.249.19"
HTTP_USER_AGENT
"claudebot"
HTTP_ACCEPT
"*/*"
HTTP_CF_VISITOR
"{"scheme":"https"}"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_CF_RAY
"86b9f9ba29255b1d-IAD"
HTTP_X_FORWARDED_FOR
"44.222.249.19"
HTTP_ACCEPT_ENCODING
"gzip, br"
HTTP_CONNECTION
"Keep-Alive"
HTTP_HOST
"www.stellamarisimoveis.com.br"
SCRIPT_URI
"http://www.stellamarisimoveis.com.br/imovel/casa-para-locacao-110m2-com-2-quartos-em-dracena-sp-id-1125"
SCRIPT_URL
"/imovel/casa-para-locacao-110m2-com-2-quartos-em-dracena-sp-id-1125"
HTTP_AUTHORIZATION
""
UNIQUE_ID
"ZgXC5WWPuJruU6fQ1gnSvAAAANE"
REDIRECT_STATUS
"200"
REDIRECT_SCRIPT_URI
"http://www.stellamarisimoveis.com.br/imovel/casa-para-locacao-110m2-com-2-quartos-em-dracena-sp-id-1125"
REDIRECT_SCRIPT_URL
"/imovel/casa-para-locacao-110m2-com-2-quartos-em-dracena-sp-id-1125"
REDIRECT_HTTP_AUTHORIZATION
""
REDIRECT_UNIQUE_ID
"ZgXC5WWPuJruU6fQ1gnSvAAAANE"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1711653605.65
REQUEST_TIME
1711653605
argv
[]
argc
0
APP_NAME
"StellaMarisImoveis"
APP_ENV
"production"
APP_KEY
"base64:rTkPagiRyaysaeAOb6xBQd/R4QmtjPDr4SQv64pdeGQ="
APP_DEBUG
"true"
APP_URL
"https://www.stellamarisimoveis.com.br/"
APP_CMS
"controle/"
LOG_CHANNEL
"stack"
DB_CONNECTION
"mysql"
DB_HOST
"mysql24-farm2.uni5.net"
DB_PORT
"3306"
DB_DATABASE
"stellamarisimo"
DB_USERNAME
"stellamarisimo"
DB_PASSWORD
"wxo2ygza9ij8"
BROADCAST_DRIVER
"log"
CACHE_DRIVER
"file"
QUEUE_CONNECTION
"sync"
SESSION_DRIVER
"file"
SESSION_LIFETIME
"120"
REDIS_HOST
"127.0.0.1"
REDIS_PASSWORD
"null"
REDIS_PORT
"6379"
MAIL_DRIVER
"smtp"
MAIL_HOST
"in-v3.mailjet.com"
MAIL_PORT
"587"
MAIL_USERNAME
"2e00af0def1db1119f75d3b7359d7577"
MAIL_PASSWORD
"de8cddb978896ae3d1deb2ba2d559ffb"
MAIL_ENCRYPTION
"tls"
PUSHER_APP_ID
""
PUSHER_APP_KEY
""
PUSHER_APP_SECRET
""
PUSHER_APP_CLUSTER
"mt1"
MIX_PUSHER_APP_KEY
""
MIX_PUSHER_APP_CLUSTER
"mt1"
GRECAPTCHA_SITE_KEY
"6LeLHLsZAAAAAHLDtP9-osdkK56SAqqCC6_nZNiv"
GRECAPTCHA_SECRET_KEY
"6LeLHLsZAAAAANFSbXdVLeLksAgBGZmfhbpbZxj1"
0. Whoops\Handler\PrettyPageHandler