1. Symfony\Component\Debug\Exception\FatalErrorException
…/­app/­controllers/­HomeController.php98
0. Illuminate\Exception\Handler handleShutdown
<#unknown>0

Symfony \ Component \ Debug \ Exception \ FatalErrorException

Call to a member function increment() on null

 
	public function okul($il_slug, $ilce_slug, $okul_slug, $id)
	{	
		$il = Il::with('ilceler')->where('slug', $il_slug)->orderBy('il_adi')->get();
		$ilce = Ilce::where('slug', $ilce_slug)->where('il_id',  $il[0]->id)->get();
		$diger_okullar = Okul::where('il_id', $il[0]->id)->where('ilce_id', $ilce[0]->id)->orderBy(DB::raw('RAND()'))->take(5)->get();
		$okul = Okul::find($id);
		$okul->increment('goruntulenme');
		$yorumlar = Yorum::where('okul_id', $okul->id)->where('onay', 1)->get();
 
<#unknown>
Key Value
PATH /usr/local/bin:/bin:/usr/bin
HTTP_ACCEPT */*
HTTP_HOST www.ilkokullar.com
HTTP_USER_AGENT claudebot
HTTP_X_HTTPS 1
DOCUMENT_ROOT /home/ilkokul/public_html
REMOTE_ADDR 34.239.150.247
REMOTE_PORT 47730
SERVER_ADDR 185.86.13.92
SERVER_NAME www.ilkokullar.com
SERVER_ADMIN webmaster@ilkokullar.com
SERVER_PORT 443
REQUEST_SCHEME https
REQUEST_URI /van/tusba/karaagac-ilkokulu/-
REDIRECT_URL /van/tusba/karaagac-ilkokulu/-
REDIRECT_REQUEST_METHOD GET
HTTPS on
REDIRECT_STATUS 200
X_SPDY HTTP2
SSL_PROTOCOL TLSv1.3
SSL_CIPHER TLS_AES_256_GCM_SHA384
SSL_CIPHER_USEKEYSIZE 256
SSL_CIPHER_ALGKEYSIZE 256
SCRIPT_FILENAME /home/ilkokul/public_html/index.php
QUERY_STRING
SCRIPT_URI https://www.ilkokullar.com/van/tusba/karaagac-ilkokulu/-
SCRIPT_URL /van/tusba/karaagac-ilkokulu/-
SCRIPT_NAME /index.php
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE LiteSpeed
REQUEST_METHOD GET
X-LSCACHE on
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711721043.1248
REQUEST_TIME 1711721043
argv Array ( )
argc 0
empty
empty
empty
empty
Key Value
_sf2_attributes Array ( [_token] => fcBAZhkn69LiBOVGGPUgNLISMUzB8iCB7IAo1lo2 )
_sf2_flashes Array ( )
_sf2_meta Array ( [u] => 1711721043 [c] => 1711721043 [l] => 7200 )
empty
0. Whoops\Handler\PrettyPageHandler