Symfony Exception

ParseError

HTTP 500 Internal Server Error

Unmatched '}'

Exception

ParseError

  1.                 return redirect(route('plugins.gallery::slug.gallery-category', ['slug' => $slug->key]), 301);
  2.             }
  3.             abort(404);
  4.        })->where(['slug' => '.*']);
  5.     }
  6.    }
  7. if(is_plugin_active('business')) {
  8.         # firma rehberi anasayfa
  9.         Route::get('firmarehberi', function () {
  10.             return redirect(route('public.business'), 301);
  1.      */
  2.     public function register($routes)
  3.     {
  4.         $router $this->router;
  5.         require $routes;
  6.     }
  7. }
  1.     protected function loadRoutes($routes)
  2.     {
  3.         if ($routes instanceof Closure) {
  4.             $routes($this);
  5.         } else {
  6.             (new RouteFileRegistrar($this))->register($routes);
  7.         }
  8.     }
  9.     /**
  10.      * Get the prefix from the last group on the stack.
  1.             $this->updateGroupStack($attributes);
  2.             // Once we have updated the group stack, we'll load the provided routes and
  3.             // merge in the group's attributes when the routes are created. After we
  4.             // have created the routes, we will pop the attributes off the stack.
  5.             $this->loadRoutes($groupRoutes);
  6.             array_pop($this->groupStack);
  7.         }
  8.         return $this;
  1.      * @param  \Closure|array|string  $callback
  2.      * @return $this
  3.      */
  4.     public function group($callback)
  5.     {
  6.         $this->router->group($this->attributes$callback);
  7.         return $this;
  8.     }
  9.     /**
  1.      */
  2.     protected function mapWebRoutes()
  3.     {
  4.         Route::middleware('web')
  5.              ->namespace($this->namespace)
  6.              ->group(base_path('routes/web.php'));
  7.     }
  8.     /**
  9.      * Define the "api" routes for the application.
  10.      *
  1.      */
  2.     public function map()
  3.     {
  4.         $this->mapApiRoutes();
  5.         $this->mapWebRoutes();
  6.         //
  7.     }
  8.     /**
  1.         if (static::isCallableWithAtSign($callback) || $defaultMethod) {
  2.             return static::callClass($container$callback$parameters$defaultMethod);
  3.         }
  4.         return static::callBoundMethod($container$callback, function () use ($container$callback$parameters) {
  5.             return $callback(...array_values(static::getMethodDependencies($container$callback$parameters)));
  6.         });
  7.     }
  8.     /**
  9.      * Call a string reference to a class using Class@method syntax.
  1.      * @param  mixed  ...$args
  2.      * @return mixed
  3.      */
  4.     public static function unwrapIfClosure($value, ...$args)
  5.     {
  6.         return $value instanceof Closure $value(...$args) : $value;
  7.     }
  8.     /**
  9.      * Get the class name of the given parameter's type, if possible.
  10.      *
  1.         if ($container->hasMethodBinding($method)) {
  2.             return $container->callMethodBinding($method$callback[0]);
  3.         }
  4.         return Util::unwrapIfClosure($default);
  5.     }
  6.     /**
  7.      * Normalize the given callback into a Class@method string.
  8.      *
  1.         if (static::isCallableWithAtSign($callback) || $defaultMethod) {
  2.             return static::callClass($container$callback$parameters$defaultMethod);
  3.         }
  4.         return static::callBoundMethod($container$callback, function () use ($container$callback$parameters) {
  5.             return $callback(...array_values(static::getMethodDependencies($container$callback$parameters)));
  6.         });
  7.     }
  8.     /**
  1.             $this->buildStack[] = $className;
  2.             $pushedToBuildStack true;
  3.         }
  4.         $result BoundMethod::call($this$callback$parameters$defaultMethod);
  5.         if ($pushedToBuildStack) {
  6.             array_pop($this->buildStack);
  7.         }
  1.     protected function loadRoutes()
  2.     {
  3.         if (! is_null($this->loadRoutesUsing)) {
  4.             $this->app->call($this->loadRoutesUsing);
  5.         } elseif (method_exists($this'map')) {
  6.             $this->app->call([$this'map']);
  7.         }
  8.     }
  9.     /**
  10.      * Pass dynamic methods onto the router instance.
  1.             $this->setRootControllerNamespace();
  2.             if ($this->routesAreCached()) {
  3.                 $this->loadCachedRoutes();
  4.             } else {
  5.                 $this->loadRoutes();
  6.                 $this->app->booted(function () {
  7.                     $this->app['router']->getRoutes()->refreshNameLookups();
  8.                     $this->app['router']->getRoutes()->refreshActionLookups();
  9.                 });
  1.         if (static::isCallableWithAtSign($callback) || $defaultMethod) {
  2.             return static::callClass($container$callback$parameters$defaultMethod);
  3.         }
  4.         return static::callBoundMethod($container$callback, function () use ($container$callback$parameters) {
  5.             return $callback(...array_values(static::getMethodDependencies($container$callback$parameters)));
  6.         });
  7.     }
  8.     /**
  9.      * Call a string reference to a class using Class@method syntax.
  1.      * @param  mixed  ...$args
  2.      * @return mixed
  3.      */
  4.     public static function unwrapIfClosure($value, ...$args)
  5.     {
  6.         return $value instanceof Closure $value(...$args) : $value;
  7.     }
  8.     /**
  9.      * Get the class name of the given parameter's type, if possible.
  10.      *
  1.      * @return mixed
  2.      */
  3.     protected static function callBoundMethod($container$callback$default)
  4.     {
  5.         if (! is_array($callback)) {
  6.             return Util::unwrapIfClosure($default);
  7.         }
  8.         // Here we need to turn the array callable into a Class@method string we can use to
  9.         // examine the container and see if there are any method bindings for this given
  10.         // method. If there are, we can call this method binding callback immediately.
  1.         if (static::isCallableWithAtSign($callback) || $defaultMethod) {
  2.             return static::callClass($container$callback$parameters$defaultMethod);
  3.         }
  4.         return static::callBoundMethod($container$callback, function () use ($container$callback$parameters) {
  5.             return $callback(...array_values(static::getMethodDependencies($container$callback$parameters)));
  6.         });
  7.     }
  8.     /**
  1.             $this->buildStack[] = $className;
  2.             $pushedToBuildStack true;
  3.         }
  4.         $result BoundMethod::call($this$callback$parameters$defaultMethod);
  5.         if ($pushedToBuildStack) {
  6.             array_pop($this->buildStack);
  7.         }
  1.     public function callBootedCallbacks()
  2.     {
  3.         $index 0;
  4.         while ($index count($this->bootedCallbacks)) {
  5.             $this->app->call($this->bootedCallbacks[$index]);
  6.             $index++;
  7.         }
  8.     }
  1.         if (method_exists($provider'boot')) {
  2.             $this->call([$provider'boot']);
  3.         }
  4.         $provider->callBootedCallbacks();
  5.     }
  6.     /**
  7.      * Register a new boot listener.
  8.      *
  1.         // for any listeners that need to do work after this initial booting gets
  2.         // finished. This is useful when ordering the boot-up processes we run.
  3.         $this->fireAppCallbacks($this->bootingCallbacks);
  4.         array_walk($this->serviceProviders, function ($p) {
  5.             $this->bootProvider($p);
  6.         });
  7.         $this->booted true;
  8.         $this->fireAppCallbacks($this->bootedCallbacks);
Application->Illuminate\Foundation\{closure}()
  1.         // Once the application has booted we will also fire some "booted" callbacks
  2.         // for any listeners that need to do work after this initial booting gets
  3.         // finished. This is useful when ordering the boot-up processes we run.
  4.         $this->fireAppCallbacks($this->bootingCallbacks);
  5.         array_walk($this->serviceProviders, function ($p) {
  6.             $this->bootProvider($p);
  7.         });
  8.         $this->booted true;
  1.      * @param  \Illuminate\Contracts\Foundation\Application  $app
  2.      * @return void
  3.      */
  4.     public function bootstrap(Application $app)
  5.     {
  6.         $app->boot();
  7.     }
  8. }
  1.         $this->hasBeenBootstrapped true;
  2.         foreach ($bootstrappers as $bootstrapper) {
  3.             $this['events']->dispatch('bootstrapping: '.$bootstrapper, [$this]);
  4.             $this->make($bootstrapper)->bootstrap($this);
  5.             $this['events']->dispatch('bootstrapped: '.$bootstrapper, [$this]);
  6.         }
  7.     }
  1.      * @return void
  2.      */
  3.     public function bootstrap()
  4.     {
  5.         if (! $this->app->hasBeenBootstrapped()) {
  6.             $this->app->bootstrapWith($this->bootstrappers());
  7.         }
  8.     }
  9.     /**
  10.      * Get the route dispatcher callback.
  1.     {
  2.         $this->app->instance('request'$request);
  3.         Facade::clearResolvedInstance('request');
  4.         $this->bootstrap();
  5.         return (new Pipeline($this->app))
  6.                     ->send($request)
  7.                     ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
  8.                     ->then($this->dispatchToRouter());
  1.         $this->requestStartedAt Carbon::now();
  2.         try {
  3.             $request->enableHttpMethodParameterOverride();
  4.             $response $this->sendRequestThroughRouter($request);
  5.         } catch (Throwable $e) {
  6.             $this->reportException($e);
  7.             $response $this->renderException($request$e);
  8.         }
  1. $cacheKey = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";;
  2. Cache::get($cacheKey);
  3. */
  4. $response tap($kernel->handle(
  5.     $request Request::capture()
  6. ))->send();
  7. $kernel->terminate($request$response);

Stack Trace

ParseError
ParseError:
Unmatched '}'

  at /home/admin/web/rizedeyiz.com/public_html/routes/te.php:124
  at require()
     (/home/admin/web/rizedeyiz.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/RouteFileRegistrar.php:35)
  at Illuminate\Routing\RouteFileRegistrar->register()
     (/home/admin/web/rizedeyiz.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:503)
  at Illuminate\Routing\Router->loadRoutes()
     (/home/admin/web/rizedeyiz.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:457)
  at Illuminate\Routing\Router->group()
     (/home/admin/web/rizedeyiz.com/public_html/vendor/laravel/framework/src/Illuminate/Routing/RouteRegistrar.php:192)
  at Illuminate\Routing\RouteRegistrar->group()
     (/home/admin/web/rizedeyiz.com/public_html/app/Providers/RouteServiceProvider.php:56)
  at App\Providers\RouteServiceProvider->mapWebRoutes()
     (/home/admin/web/rizedeyiz.com/public_html/app/Providers/RouteServiceProvider.php:40)
  at App\Providers\RouteServiceProvider->map()
     (/home/admin/web/rizedeyiz.com/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36)
  at Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
     (/home/admin/web/rizedeyiz.com/public_html/vendor/laravel/framework/src/Illuminate/Container/Util.php:41)
  at Illuminate\Container\Util::unwrapIfClosure()
     (/home/admin/web/rizedeyiz.com/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:93)
  at Illuminate\Container\BoundMethod::callBoundMethod()
     (/home/admin/web/rizedeyiz.com/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:35)
  at Illuminate\Container\BoundMethod::call()
     (/home/admin/web/rizedeyiz.com/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:661)
  at Illuminate\Container\Container->call()
     (/home/admin/web/rizedeyiz.com/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php:122)
  at Illuminate\Foundation\Support\Providers\RouteServiceProvider->loadRoutes()
     (/home/admin/web/rizedeyiz.com/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php:45)
  at Illuminate\Foundation\Support\Providers\RouteServiceProvider->Illuminate\Foundation\Support\Providers\{closure}()
     (/home/admin/web/rizedeyiz.com/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36)
  at Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
     (/home/admin/web/rizedeyiz.com/public_html/vendor/laravel/framework/src/Illuminate/Container/Util.php:41)
  at Illuminate\Container\Util::unwrapIfClosure()
     (/home/admin/web/rizedeyiz.com/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:81)
  at Illuminate\Container\BoundMethod::callBoundMethod()
     (/home/admin/web/rizedeyiz.com/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:35)
  at Illuminate\Container\BoundMethod::call()
     (/home/admin/web/rizedeyiz.com/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:661)
  at Illuminate\Container\Container->call()
     (/home/admin/web/rizedeyiz.com/public_html/vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php:119)
  at Illuminate\Support\ServiceProvider->callBootedCallbacks()
     (/home/admin/web/rizedeyiz.com/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:932)
  at Illuminate\Foundation\Application->bootProvider()
     (/home/admin/web/rizedeyiz.com/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:910)
  at Illuminate\Foundation\Application->Illuminate\Foundation\{closure}()
  at array_walk()
     (/home/admin/web/rizedeyiz.com/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:909)
  at Illuminate\Foundation\Application->boot()
     (/home/admin/web/rizedeyiz.com/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php:17)
  at Illuminate\Foundation\Bootstrap\BootProviders->bootstrap()
     (/home/admin/web/rizedeyiz.com/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:242)
  at Illuminate\Foundation\Application->bootstrapWith()
     (/home/admin/web/rizedeyiz.com/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:176)
  at Illuminate\Foundation\Http\Kernel->bootstrap()
     (/home/admin/web/rizedeyiz.com/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:160)
  at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
     (/home/admin/web/rizedeyiz.com/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:134)
  at Illuminate\Foundation\Http\Kernel->handle()
     (/home/admin/web/rizedeyiz.com/public_html/public/index.php:72)