ErrorException {#1026
#message: "Trying to get property '分區' of non-object"
#code: 0
#file: "/var/www/goodschool/v2/app/Http/Controllers/SchoolController.php"
#line: 187
#severity: E_NOTICE
trace: {
/var/www/goodschool/v2/app/Http/Controllers/SchoolController.php:187 {
› // dd($school);
› $data['districts_related'] = app('App\Http\Controllers\SchoolKGController')->getDistrictRelatedSchool($school->分區);
› $data['widget_data'] = app('App\Http\Controllers\SchoolDistrict\SchoolDistrictController')->getKGDistrictData($school->分區);
arguments: {
$level: 8
$message: "Trying to get property '分區' of non-object"
$file: "/var/www/goodschool/v2/app/Http/Controllers/SchoolController.php"
$line: 187
$context: array:2 [ …2]
}
}
App\Http\Controllers\SchoolController->school() {}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54 {
› {
› return call_user_func_array([$this, $method], $parameters);
› }
arguments: {
$function_name: array:2 [ …2]
$parameters: array:1 [ …1]
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:45 {
› if (method_exists($controller, 'callAction')) {
› return $controller->callAction($method, $parameters);
› }
arguments: {
$method: "school"
$parameters: array:1 [ …1]
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Routing/Route.php:219 {
› return $this->controllerDispatcher()->dispatch(
› $this, $this->getController(), $this->getControllerMethod()
› );
arguments: {
$route: Route {#724 …}
$controller: SchoolController {#790 …}
$method: "school"
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Routing/Route.php:176 {
› if ($this->isControllerAction()) {
› return $this->runController();
› }
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Routing/Router.php:682 {
› return $this->prepareResponse(
› $request, $route->run()
› );
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 {
› try {
› return $destination($passable);
› } catch (Exception $e) {
arguments: {
Request {#42 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:41 {
›
› return $next($request);
› }
arguments: {
Request {#42 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#42 …}
$next: Closure {#763 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#42 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:75 {
› ) {
› return tap($next($request), function ($response) use ($request) {
› if ($this->shouldAddXsrfTokenCookie()) {
arguments: {
Request {#42 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#42 …}
$next: Closure {#763 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#42 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49 {
›
› return $next($request);
› }
arguments: {
Request {#42 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#42 …}
$next: Closure {#763 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#42 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:63 {
›
› $response = $next($request);
›
arguments: {
Request {#42 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#42 …}
$next: Closure {#763 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#42 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37 {
› {
› $response = $next($request);
›
arguments: {
Request {#42 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#42 …}
$next: Closure {#763 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#42 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:66 {
› {
› return $this->encrypt($next($this->decrypt($request)));
› }
arguments: {
Request {#42 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#42 …}
$next: Closure {#763 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#42 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104 {
›
› return $pipeline($this->passable);
› }
arguments: {
Request {#42 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Routing/Router.php:684 {
› );
› });
› }
arguments: {
$destination: Closure {#779 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Routing/Router.php:659 {
› return $this->prepareResponse($request,
› $this->runRouteWithinStack($route, $request)
› );
arguments: {
$route: Route {#724 …}
$request: Request {#42 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Routing/Router.php:625 {
› {
› return $this->runRoute($request, $this->findRoute($request));
› }
arguments: {
$request: Request {#42 …}
$route: Route {#724 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Routing/Router.php:614 {
›
› return $this->dispatchToRoute($request);
› }
arguments: {
$request: Request {#42 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:176 {
›
› return $this->router->dispatch($request);
› };
arguments: {
$request: Request {#42 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 {
› try {
› return $destination($passable);
› } catch (Exception $e) {
arguments: {
Request {#42 …}
}
}
/var/www/goodschool/v2/vendor/fideloper/proxy/src/TrustProxies.php:57 {
›
› return $next($request);
› }
arguments: {
Request {#42 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#42 …}
$next: Closure {#763 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#42 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:31 {
›
› return $next($request);
› }
arguments: {
Request {#42 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#42 …}
$next: Closure {#763 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#42 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:31 {
›
› return $next($request);
› }
arguments: {
Request {#42 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#42 …}
$next: Closure {#763 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#42 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27 {
›
› return $next($request);
› }
arguments: {
Request {#42 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#42 …}
$next: Closure {#763 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#42 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:62 {
›
› return $next($request);
› }
arguments: {
Request {#42 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#42 …}
$next: Closure {#763 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#42 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104 {
›
› return $pipeline($this->passable);
› }
arguments: {
Request {#42 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:151 {
› ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
› ->then($this->dispatchToRouter());
› }
arguments: {
$destination: Closure {#22 …}
}
}
/var/www/goodschool/v2/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116 {
›
› $response = $this->sendRequestThroughRouter($request);
› } catch (Exception $e) {
arguments: {
$request: Request {#42 …}
}
}
/var/www/goodschool/v2/public/index.php:55 {
› $response = $kernel->handle(
› $request = Illuminate\Http\Request::capture()
› );
arguments: {
$request: Request {#42 …}
}
}
}
}