class FrontEndController extends Controller { public function index() { return view('frontend.index'); } public function property($slug) { return view('frontend.property'); } public function propertyDetail($id) { DB::table('properties')->where('id', $id)->increment('view_count', 1); $name = ""; $property = Property::find($id); $data['property'] = $property; $galleries = $property->propertyGalleries()->get(); $city = $property->city()->get(); $district = $property->district()->get(); $commnue = $property->commune()->get(); return view('frontend.property_detail')->with('property', $property)->with('galleries',$galleries)->with('city',$city)->with('district',$district)->with('commnue',$commnue); } public function service() { return view('frontend.service'); } public function news() { $news = NewsPost::orderBy('id', 'desc')->paginate(5); return view('frontend.news')->with('news', $news); } public function newsDetail($id) { DB::table('news_posts')->where('id', $id)->increment('views', 1);
"Call to a member function propertyGalleries() on null"
Key | Value |
PATH | "/sbin:/usr/sbin:/bin:/usr/bin"
|
DOCUMENT_ROOT | "/home/www/cpa-realty.com"
|
SCRIPT_NAME | "/index.php"
|
SCRIPT_FILENAME | "/home/www/cpa-realty.com/index.php"
|
PHP_VERSION | "72"
|
PYTHON_VERSION | "35"
|
CHROOT_HOST | "1"
|
SB | "0"
|
PHP_FCGI_MAX_REQUESTS | "500"
|
PHP_INI_SCAN_DIR | "/home/tmp/php"
|
HTTP_CONNECTION | "close"
|
PH3_SCRIPT_FILENAME | "/services/users/zstorage1p1/snsg68/www/cpa-realty.com/index.php"
|
PH3_SCRIPT_NAME | "/index.php"
|
PH3_DOCUMENT_ROOT | "/services/users/zstorage1p1/snsg68/www/cpa-realty.com"
|
REQUEST_URI | "/property-detail/1362"
|
QUERY_STRING | "" |
REQUEST_METHOD | "GET"
|
SERVER_PROTOCOL | "HTTP/1.1"
|
GATEWAY_INTERFACE | "CGI/1.1"
|
REDIRECT_URL | "/property-detail/1362"
|
REMOTE_PORT | "60348"
|
SERVER_ADMIN | "[no address given]"
|
CONTEXT_DOCUMENT_ROOT | "/services/users/zstorage1p1/snsg68/www/cpa-realty.com"
|
CONTEXT_PREFIX | "" |
REQUEST_SCHEME | "http"
|
REMOTE_ADDR | "54.234.124.70"
|
SERVER_PORT | "80"
|
SERVER_ADDR | "162.210.96.7"
|
SERVER_NAME | "cpa-realty.com"
|
SERVER_SOFTWARE | "Apache"
|
SERVER_SIGNATURE | "" |
LD_LIBRARY_PATH | "/services/apache/lib/openssl-1.1.1/lib:/services/apache/lib/curl/lib/:/services/apache/lib/"
|
HTTP_HOST | "cpa-realty.com"
|
HTTP_USER_AGENT | "claudebot"
|
HTTP_ACCEPT | "*/*"
|
vhost_ph3_PATH | "/services/users/zstorage1p1/snsg68/www/cpa-realty.com"
|
SECURITY | "on"
|
UID | "170381"
|
UNIQUE_ID | "ZgbkLlP-Zw3w9RNuNrpP6gAAAgs"
|
REDIRECT_STATUS | "200"
|
REDIRECT_vhost_ph3_PATH | "/services/users/zstorage1p1/snsg68/www/cpa-realty.com"
|
REDIRECT_DOCUMENT_ROOT | "/services/users/zstorage1p1/snsg68/www/cpa-realty.com"
|
REDIRECT_SECURITY | "on"
|
REDIRECT_SB | "0"
|
REDIRECT_CHROOT_HOST | "1"
|
REDIRECT_PYTHON_VERSION | "35"
|
REDIRECT_PHP_VERSION | "72"
|
REDIRECT_UID | "170381"
|
REDIRECT_UNIQUE_ID | "ZgbkLlP-Zw3w9RNuNrpP6gAAAgs"
|
FCGI_ROLE | "RESPONDER"
|
PHP_SELF | "/index.php"
|
REQUEST_TIME_FLOAT | 1711727663.2797
|
REQUEST_TIME | 1711727663
|