From d6edaa690177eb86305d102674cc337e8452420c Mon Sep 17 00:00:00 2001
From: Barnacl437
up one level
1096032892934701086 .html
up one level
1063775449794228264 folder
up one level
channels folder
+ + \home\archive:root\log-archive
+ + +file browser version alpha, rev. 1, oct. 2024
+"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'parent_id' in 'where clause' (SQL: select * from `categories` where `phanloai` = roblox and `parent_id` is null and `trangthai` = hoat_dong order by `id` desc) (View: /home/accmine1/public_html/resources/views/roblox/index.blade.php) ◀"
+
+ if ($e instanceof Exception){
+ $uses = array_flip(class_uses_recursive($e));
+
+ if (
+ // Don't wrap "abort(403)".
+ $e instanceof AuthorizationException
+ // Don't wrap "abort(404)".
+ || $e instanceof NotFoundHttpException
+ // Don't wrap "abort(500)".
+ || $e instanceof HttpException
+ // Don't wrap most Livewire exceptions.
+ || isset($uses[BypassViewHandler::class])
+ ) {
+ // This is because there is no "parent::parent::".
+ PhpEngine::handleViewException($e, $obLevel);
+
+ return;
+ }
+
+ parent::handleViewException($e, $obLevel);
+ } else {
+ throw($e);
+ }
+ }
+ }
+}
+
+
+
+ +0 of 0Illuminate\Database\QueryException {#810 ▶ + #sql: "select * from `categories` where `phanloai` = ? and `parent_id` is null and `trangthai` = ? order by `id` desc" + #bindings: array:2 [▶ + 0 => "roblox" + 1 => "hoat_dong" + ] + #message: "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'parent_id' in 'where clause' (SQL: select * from `categories` where `phanloai` = roblox and `parent_id` is null and `trangthai` = hoat_dong order by `id` desc) ◀" + #code: "42S22" + #file: "/home/accmine1/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php" + #line: 664 + -previous: PDOException {#808 ▶ + #message: "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'parent_id' in 'where clause'" + #code: "42S22" + #file: "/home/accmine1/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php" + #line: 326 + +errorInfo: array:3 [▶ + 0 => "42S22" + 1 => 1054 + 2 => "Unknown column 'parent_id' in 'where clause'" + ] + } + +errorInfo: array:3 [▶ + 0 => "42S22" + 1 => 1054 + 2 => "Unknown column 'parent_id' in 'where clause'" + ] +} +
1
+
+ *
+ * @param string $__path
+ * @param array $__data
+ * @return string
+ */
+ protected function evaluatePath($__path, $__data)
+ {
+ $obLevel = ob_get_level();
+
+ ob_start();
+
+ extract($__data, EXTR_SKIP);
+
+ // We'll evaluate the contents of the view inside a try/catch block so we can
+ // flush out any stray output that might get out before an error occurs or
+ // an exception is thrown. This prevents any partial views from leaking.
+ try {
+ include $__path;
+ } catch (Exception $e) {
+ $this->handleViewException($e, $obLevel);
+ } catch (Throwable $e) {
+ $this->handleViewException(new FatalThrowableError($e), $obLevel);
+ }
+
+ return ltrim(ob_get_clean());
+ }
+
+ /**
+ * Handle a view exception.
+ *
+ * @param \Exception $e
+ * @param int $obLevel
+ * @return void
+ *
+ * @throws \Exception
+ */
+ protected function handleViewException(Exception $e, $obLevel)
+ {
+ while (ob_get_level() > $obLevel) {
+ ob_end_clean();
+
+
+ +0 of 0Illuminate\Database\QueryException {#810 ▶ + #sql: "select * from `categories` where `phanloai` = ? and `parent_id` is null and `trangthai` = ? order by `id` desc" + #bindings: array:2 [▶ + 0 => "roblox" + 1 => "hoat_dong" + ] + #message: "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'parent_id' in 'where clause' (SQL: select * from `categories` where `phanloai` = roblox and `parent_id` is null and `trangthai` = hoat_dong order by `id` desc) ◀" + #code: "42S22" + #file: "/home/accmine1/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php" + #line: 664 + -previous: PDOException {#808 ▶ + #message: "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'parent_id' in 'where clause'" + #code: "42S22" + #file: "/home/accmine1/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php" + #line: 326 + +errorInfo: array:3 [▶ + 0 => "42S22" + 1 => 1054 + 2 => "Unknown column 'parent_id' in 'where clause'" + ] + } + +errorInfo: array:3 [▶ + 0 => "42S22" + 1 => 1054 + 2 => "Unknown column 'parent_id' in 'where clause'" + ] +} +
1
+
+ * @param array $bindings
+ * @param \Closure $callback
+ * @return mixed
+ *
+ * @throws \Illuminate\Database\QueryException
+ */
+ protected function runQueryCallback($query, $bindings, Closure $callback)
+ {
+ // To execute the statement, we'll simply call the callback, which will actually
+ // run the SQL against the PDO connection. Then we can calculate the time it
+ // took to execute and log the query SQL, bindings and time in our memory.
+ try {
+ $result = $callback($query, $bindings);
+ }
+
+ // If an exception occurs when attempting to run a query, we'll format the error
+ // message to include the bindings with SQL, which will make this exception a
+ // lot more helpful to the developer instead of just the database's errors.
+ catch (Exception $e) {
+ throw new QueryException(
+ $query, $this->prepareBindings($bindings), $e
+ );
+ }
+
+ return $result;
+ }
+
+ /**
+ * Log a query in the connection's query log.
+ *
+ * @param string $query
+ * @param array $bindings
+ * @param float|null $time
+ * @return void
+ */
+ public function logQuery($query, $bindings, $time = null)
+ {
+ $this->event(new QueryExecuted($query, $bindings, $time, $this));
+
+ if ($this->loggingQueries) {
+
+
+ "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'parent_id' in 'where clause' (SQL: select * from `categories` where `phanloai` = roblox and `parent_id` is null and `trangthai` = hoat_dong order by `id` desc) ◀"
+
+ /**
+ * Run a select statement against the database.
+ *
+ * @param string $query
+ * @param array $bindings
+ * @param bool $useReadPdo
+ * @return array
+ */
+ public function select($query, $bindings = [], $useReadPdo = true)
+ {
+ return $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {
+ if ($this->pretending()) {
+ return [];
+ }
+
+ // For select statements, we'll simply execute the query and return an array
+ // of the database result set. Each element in the array will be a single
+ // row from the database table, and will either be an array or objects.
+ $statement = $this->prepared($this->getPdoForSelect($useReadPdo)
+ ->prepare($query));
+
+ $this->bindValues($statement, $this->prepareBindings($bindings));
+
+ $statement->execute();
+
+ return $statement->fetchAll();
+ });
+ }
+
+ /**
+ * Run a select statement against the database and returns a generator.
+ *
+ * @param string $query
+ * @param array $bindings
+ * @param bool $useReadPdo
+ * @return \Generator
+ */
+ public function cursor($query, $bindings = [], $useReadPdo = true)
+ {
+ $statement = $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {
+
+
+ "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'parent_id' in 'where clause'"
+
+ /**
+ * Run a select statement against the database.
+ *
+ * @param string $query
+ * @param array $bindings
+ * @param bool $useReadPdo
+ * @return array
+ */
+ public function select($query, $bindings = [], $useReadPdo = true)
+ {
+ return $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {
+ if ($this->pretending()) {
+ return [];
+ }
+
+ // For select statements, we'll simply execute the query and return an array
+ // of the database result set. Each element in the array will be a single
+ // row from the database table, and will either be an array or objects.
+ $statement = $this->prepared($this->getPdoForSelect($useReadPdo)
+ ->prepare($query));
+
+ $this->bindValues($statement, $this->prepareBindings($bindings));
+
+ $statement->execute();
+
+ return $statement->fetchAll();
+ });
+ }
+
+ /**
+ * Run a select statement against the database and returns a generator.
+ *
+ * @param string $query
+ * @param array $bindings
+ * @param bool $useReadPdo
+ * @return \Generator
+ */
+ public function cursor($query, $bindings = [], $useReadPdo = true)
+ {
+ $statement = $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {
+
+
+ "select * from `categories` where `phanloai` = ? and `parent_id` is null and `trangthai` = ? order by `id` desc"
+
+ return $result;
+ }
+
+ /**
+ * Run a SQL statement.
+ *
+ * @param string $query
+ * @param array $bindings
+ * @param \Closure $callback
+ * @return mixed
+ *
+ * @throws \Illuminate\Database\QueryException
+ */
+ protected function runQueryCallback($query, $bindings, Closure $callback)
+ {
+ // To execute the statement, we'll simply call the callback, which will actually
+ // run the SQL against the PDO connection. Then we can calculate the time it
+ // took to execute and log the query SQL, bindings and time in our memory.
+ try {
+ $result = $callback($query, $bindings);
+ }
+
+ // If an exception occurs when attempting to run a query, we'll format the error
+ // message to include the bindings with SQL, which will make this exception a
+ // lot more helpful to the developer instead of just the database's errors.
+ catch (Exception $e) {
+ throw new QueryException(
+ $query, $this->prepareBindings($bindings), $e
+ );
+ }
+
+ return $result;
+ }
+
+ /**
+ * Log a query in the connection's query log.
+ *
+ * @param string $query
+ * @param array $bindings
+ * @param float|null $time
+
+
+ "select * from `categories` where `phanloai` = ? and `parent_id` is null and `trangthai` = ? order by `id` desc"
+
++0 of 0array:2 [▶ + 0 => "roblox" + 1 => "hoat_dong" +] +
* Run a SQL statement and log its execution context.
+ *
+ * @param string $query
+ * @param array $bindings
+ * @param \Closure $callback
+ * @return mixed
+ *
+ * @throws \Illuminate\Database\QueryException
+ */
+ protected function run($query, $bindings, Closure $callback)
+ {
+ $this->reconnectIfMissingConnection();
+
+ $start = microtime(true);
+
+ // Here we will run this query. If an exception occurs we'll determine if it was
+ // caused by a connection that has been lost. If that is the cause, we'll try
+ // to re-establish connection and re-run the query with a fresh connection.
+ try {
+ $result = $this->runQueryCallback($query, $bindings, $callback);
+ } catch (QueryException $e) {
+ $result = $this->handleQueryException(
+ $e, $query, $bindings, $callback
+ );
+ }
+
+ // Once we have run the query we will calculate the time that it took to run and
+ // then log the query, bindings, and execution time so we will report them on
+ // the event that the developer needs them. We'll log time in milliseconds.
+ $this->logQuery(
+ $query, $bindings, $this->getElapsedTime($start)
+ );
+
+ return $result;
+ }
+
+ /**
+ * Run a SQL statement.
+ *
+ * @param string $query
+
+
+ */
+ public function select($query, $bindings = [], $useReadPdo = true)
+ {
+ return $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {
+ if ($this->pretending()) {
+ return [];
+ }
+
+ // For select statements, we'll simply execute the query and return an array
+ // of the database result set. Each element in the array will be a single
+ // row from the database table, and will either be an array or objects.
+ $statement = $this->prepared($this->getPdoForSelect($useReadPdo)
+ ->prepare($query));
+
+ $this->bindValues($statement, $this->prepareBindings($bindings));
+
+ $statement->execute();
+
+ return $statement->fetchAll();
+ });
+ }
+
+ /**
+ * Run a select statement against the database and returns a generator.
+ *
+ * @param string $query
+ * @param array $bindings
+ * @param bool $useReadPdo
+ * @return \Generator
+ */
+ public function cursor($query, $bindings = [], $useReadPdo = true)
+ {
+ $statement = $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {
+ if ($this->pretending()) {
+ return [];
+ }
+
+ // First we will create a statement for the query. Then, we will set the fetch
+ // mode and prepare the bindings for the query. Once that's done we will be
+ // ready to execute the query against the database and return the cursor.
+
+
+ *
+ * @param array|string $columns
+ * @return \Illuminate\Support\Collection
+ */
+ public function get($columns = ['*'])
+ {
+ return collect($this->onceWithColumns(Arr::wrap($columns), function () {
+ return $this->processor->processSelect($this, $this->runSelect());
+ }));
+ }
+
+ /**
+ * Run the query as a "select" statement against the connection.
+ *
+ * @return array
+ */
+ protected function runSelect()
+ {
+ return $this->connection->select(
+ $this->toSql(), $this->getBindings(), ! $this->useWritePdo
+ );
+ }
+
+ /**
+ * Paginate the given query into a simple paginator.
+ *
+ * @param int $perPage
+ * @param array $columns
+ * @param string $pageName
+ * @param int|null $page
+ * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
+ */
+ public function paginate($perPage = 15, $columns = ['*'], $pageName = 'page', $page = null)
+ {
+ $page = $page ?: Paginator::resolveCurrentPage($pageName);
+
+ $total = $this->getCountForPagination();
+
+ $results = $total ? $this->forPage($page, $perPage)->get($columns) : collect();
+
+
+
+ "select * from `categories` where `phanloai` = ? and `parent_id` is null and `trangthai` = ? order by `id` desc"
+
++0 of 0array:2 [▶ + 0 => "roblox" + 1 => "hoat_dong" +] +
true
+
+ * @param string $column
+ * @return mixed
+ */
+ public function value($column)
+ {
+ $result = (array) $this->first([$column]);
+
+ return count($result) > 0 ? reset($result) : null;
+ }
+
+ /**
+ * Execute the query as a "select" statement.
+ *
+ * @param array|string $columns
+ * @return \Illuminate\Support\Collection
+ */
+ public function get($columns = ['*'])
+ {
+ return collect($this->onceWithColumns(Arr::wrap($columns), function () {
+ return $this->processor->processSelect($this, $this->runSelect());
+ }));
+ }
+
+ /**
+ * Run the query as a "select" statement against the connection.
+ *
+ * @return array
+ */
+ protected function runSelect()
+ {
+ return $this->connection->select(
+ $this->toSql(), $this->getBindings(), ! $this->useWritePdo
+ );
+ }
+
+ /**
+ * Paginate the given query into a simple paginator.
+ *
+ * @param int $perPage
+ * @param array $columns
+
+
+
+ }
+
+ /**
+ * Execute the given callback while selecting the given columns.
+ *
+ * After running the callback, the columns are reset to the original value.
+ *
+ * @param array $columns
+ * @param callable $callback
+ * @return mixed
+ */
+ protected function onceWithColumns($columns, $callback)
+ {
+ $original = $this->columns;
+
+ if (is_null($original)) {
+ $this->columns = $columns;
+ }
+
+ $result = $callback();
+
+ $this->columns = $original;
+
+ return $result;
+ }
+
+ /**
+ * Insert a new record into the database.
+ *
+ * @param array $values
+ * @return bool
+ */
+ public function insert(array $values)
+ {
+ // Since every insert gets treated like a batch insert, we will make sure the
+ // bindings are structured in a way that is convenient when building these
+ // inserts statements by verifying these elements are actually an array.
+ if (empty($values)) {
+ return true;
+ }
+
+
+
+ * @return mixed
+ */
+ public function value($column)
+ {
+ $result = (array) $this->first([$column]);
+
+ return count($result) > 0 ? reset($result) : null;
+ }
+
+ /**
+ * Execute the query as a "select" statement.
+ *
+ * @param array|string $columns
+ * @return \Illuminate\Support\Collection
+ */
+ public function get($columns = ['*'])
+ {
+ return collect($this->onceWithColumns(Arr::wrap($columns), function () {
+ return $this->processor->processSelect($this, $this->runSelect());
+ }));
+ }
+
+ /**
+ * Run the query as a "select" statement against the connection.
+ *
+ * @return array
+ */
+ protected function runSelect()
+ {
+ return $this->connection->select(
+ $this->toSql(), $this->getBindings(), ! $this->useWritePdo
+ );
+ }
+
+ /**
+ * Paginate the given query into a simple paginator.
+ *
+ * @param int $perPage
+ * @param array $columns
+ * @param string $pageName
+
+
+ // If we actually found models we will also eager load any relationships that
+ // have been specified as needing to be eager loaded, which will solve the
+ // n+1 query issue for the developers to avoid running a lot of queries.
+ if (count($models = $builder->getModels($columns)) > 0) {
+ $models = $builder->eagerLoadRelations($models);
+ }
+
+ return $builder->getModel()->newCollection($models);
+ }
+
+ /**
+ * Get the hydrated models without eager loading.
+ *
+ * @param array $columns
+ * @return \Illuminate\Database\Eloquent\Model[]|static[]
+ */
+ public function getModels($columns = ['*'])
+ {
+ return $this->model->hydrate(
+ $this->query->get($columns)->all()
+ )->all();
+ }
+
+ /**
+ * Eager load the relationships for the models.
+ *
+ * @param array $models
+ * @return array
+ */
+ public function eagerLoadRelations(array $models)
+ {
+ foreach ($this->eagerLoad as $name => $constraints) {
+ // For nested eager loads we'll skip loading them here and they will be set as an
+ // eager load on the query to retrieve the relation so that they will be eager
+ // loaded on that query, because that is where they get hydrated as models.
+ if (strpos($name, '.') === false) {
+ $models = $this->eagerLoadRelation($models, $name, $constraints);
+ }
+ }
+
+
+
+ +0 of 0array:1 [▶ + 0 => "*" +] +
{
+ if ($result = $this->first([$column])) {
+ return $result->{$column};
+ }
+ }
+
+ /**
+ * Execute the query as a "select" statement.
+ *
+ * @param array $columns
+ * @return \Illuminate\Database\Eloquent\Collection|static[]
+ */
+ public function get($columns = ['*'])
+ {
+ $builder = $this->applyScopes();
+
+ // If we actually found models we will also eager load any relationships that
+ // have been specified as needing to be eager loaded, which will solve the
+ // n+1 query issue for the developers to avoid running a lot of queries.
+ if (count($models = $builder->getModels($columns)) > 0) {
+ $models = $builder->eagerLoadRelations($models);
+ }
+
+ return $builder->getModel()->newCollection($models);
+ }
+
+ /**
+ * Get the hydrated models without eager loading.
+ *
+ * @param array $columns
+ * @return \Illuminate\Database\Eloquent\Model[]|static[]
+ */
+ public function getModels($columns = ['*'])
+ {
+ return $this->model->hydrate(
+ $this->query->get($columns)->all()
+ )->all();
+ }
+
+ /**
+
+
+ +0 of 0array:1 [▶ + 0 => "*" +] +
<?php $__env->startSection('content'); ?>
+
+ <div class="container">
+ <h1 class='text-center'>Cửa Hàng Acc Roblox Tự Động 24/7</h1>
+ <p class='text-center'>Tại đây bạn có thể mua tài khoản Roblox với giá cả siêu rẻ và chất lượng cao !!! Được hỗ trợ
+ bảo hành tài khoản 30 ngày</p>
+ <div class="row justify-content-center">
+ <?php
+ $categories = App\Category::where('phanloai', 'roblox')
+ ->where('parent_id', null)
+ ->where('trangthai', 'hoat_dong')
+ ->orderBy('id', 'DESC')
+ ->get();
+ ?>
+ <div class="col-md-2"></div> <!-- Placeholder for centering -->
+ <div class="col-md-12">
+ <div class="row">
+ <?php if($categories->first() != null): ?>
+ <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
+ <div class="col-md-3">
+ <div class="card hvr-float mb-4 shadow card-san-pham"
+ style="position: relative; border-radius: 10px;">
+ <div class="card-body p-0">
+ <?php if($category->image != null): ?>
+ <img alt="<?php echo e($category->ten); ?>" height="200px"
+ src="<?php echo e(asset($category->image->url)); ?>" width='100%'
+ style='border-top-right-radius: 12px; border-top-left-radius: 12px;'>
+ <?php endif; ?>
+ <div class="p-2">
+ <h4
+ style='text-transform: uppercase; font-size: 1.2rem; text-align: center; color: #333; font-weight: bold;'>
+ <?php echo e($category->ten); ?></h4>
+ <?php if($category->giacu != null): ?>
+ <p style='text-align:center; color: grey; text-decoration: line-through'>
+ <?php echo e(number_format($category->giacu, 0, ',', '.')); ?></p>
+ <?php endif; ?>
+ <p style="font-size: 1rem; color: #666; text-align: center;"><i
+ class="las la-wallet"></i>
+ <?php echo e(number_format($category->gia, 0, ',', '.')); ?> xu
+
+
+
+
+ /**
+ * Get the evaluated contents of the view at the given path.
+ *
+ * @param string $__path
+ * @param array $__data
+ * @return string
+ */
+ protected function evaluatePath($__path, $__data)
+ {
+ $obLevel = ob_get_level();
+
+ ob_start();
+
+ extract($__data, EXTR_SKIP);
+
+ // We'll evaluate the contents of the view inside a try/catch block so we can
+ // flush out any stray output that might get out before an error occurs or
+ // an exception is thrown. This prevents any partial views from leaking.
+ try {
+ include $__path;
+ } catch (Exception $e) {
+ $this->handleViewException($e, $obLevel);
+ } catch (Throwable $e) {
+ $this->handleViewException(new FatalThrowableError($e), $obLevel);
+ }
+
+ return ltrim(ob_get_clean());
+ }
+
+ /**
+ * Handle a view exception.
+ *
+ * @param \Exception $e
+ * @param int $obLevel
+ * @return void
+ *
+ * @throws \Exception
+ */
+ protected function handleViewException(Exception $e, $obLevel)
+ {
+
+
+ "/home/accmine1/public_html/storage/framework/views/6eda6f9379424fe28de5c693d8a0e01b6e426912.php"
+
+ $this->livewireComponent = $component;
+ $this->isRenderingLivewireComponent = true;
+ $this->addLivewireDirectivesToCompiler();
+ }
+
+ public function endLivewireRendering()
+ {
+ $this->isRenderingLivewireComponent = false;
+ $this->removeLivewireDirectivesFromCompiler();
+ }
+
+ public function setLivewireComponent($component)
+ {
+ $this->livewireComponent = $component;
+ }
+
+ protected function evaluatePath($__path, $__data)
+ {
+ if (! $this->isRenderingLivewireComponent) {
+ return parent::evaluatePath($__path, $__data);
+ }
+
+ $obLevel = ob_get_level();
+
+ ob_start();
+
+ // We'll evaluate the contents of the view inside a try/catch block so we can
+ // flush out any stray output that might get out before an error occurs or
+ // an exception is thrown. This prevents any partial views from leaking.
+ try {
+ \Closure::bind(function() use($__path, $__data) {
+ extract($__data, EXTR_SKIP);
+ include $__path;
+ }, $this->livewireComponent ? $this->livewireComponent : $this)();
+ } catch (Exception $e) {
+ $this->handleViewException($e, $obLevel);
+ } catch (Throwable $e) {
+ if (Application::VERSION === '7.x-dev' || version_compare(Application::VERSION, '7.0', '>=')) {
+ $this->handleViewException($e, $obLevel);
+ } else {
+
+
+ * @param array $data
+ * @return string
+ */
+ public function get($path, array $data = [])
+ {
+ $this->lastCompiled[] = $path;
+
+ // If this given view has expired, which means it has simply been edited since
+ // it was last compiled, we will re-compile the views so we can evaluate a
+ // fresh copy of the view. We'll pass the compiler the path of the view.
+ if ($this->compiler->isExpired($path)) {
+ $this->compiler->compile($path);
+ }
+
+ $compiled = $this->compiler->getCompiledPath($path);
+
+ // Once we have the path to the compiled file, we will evaluate the paths with
+ // typical PHP just like any other templates. We also keep a stack of views
+ // which have been rendered for right exception messages to be generated.
+ $results = $this->evaluatePath($compiled, $data);
+
+ array_pop($this->lastCompiled);
+
+ return $results;
+ }
+
+ /**
+ * Handle a view exception.
+ *
+ * @param \Exception $e
+ * @param int $obLevel
+ * @return void
+ *
+ * @throws \Exception
+ */
+ protected function handleViewException(Exception $e, $obLevel)
+ {
+ $e = new ErrorException($this->getMessage($e), 0, 1, $e->getFile(), $e->getLine(), $e);
+
+ parent::handleViewException($e, $obLevel);
+
+
+ $this->factory->callComposer($this);
+
+ $contents = $this->getContents();
+
+ // Once we've finished rendering the view, we'll decrement the render count
+ // so that each sections get flushed out next time a view is created and
+ // no old sections are staying around in the memory of an environment.
+ $this->factory->decrementRender();
+
+ return $contents;
+ }
+
+ /**
+ * Get the evaluated contents of the view.
+ *
+ * @return string
+ */
+ protected function getContents()
+ {
+ return $this->engine->get($this->path, $this->gatherData());
+ }
+
+ /**
+ * Get the data bound to the view instance.
+ *
+ * @return array
+ */
+ public function gatherData()
+ {
+ $data = array_merge($this->factory->getShared(), $this->data);
+
+ foreach ($data as $key => $value) {
+ if ($value instanceof Renderable) {
+ $data[$key] = $value->render();
+ }
+ }
+
+ return $data;
+ }
+
+
+
+
+ throw $e;
+ }
+ }
+
+ /**
+ * Get the contents of the view instance.
+ *
+ * @return string
+ */
+ protected function renderContents()
+ {
+ // We will keep track of the amount of views being rendered so we can flush
+ // the section after the complete rendering operation is done. This will
+ // clear out the sections for any separate views that may be rendered.
+ $this->factory->incrementRender();
+
+ $this->factory->callComposer($this);
+
+ $contents = $this->getContents();
+
+ // Once we've finished rendering the view, we'll decrement the render count
+ // so that each sections get flushed out next time a view is created and
+ // no old sections are staying around in the memory of an environment.
+ $this->factory->decrementRender();
+
+ return $contents;
+ }
+
+ /**
+ * Get the evaluated contents of the view.
+ *
+ * @return string
+ */
+ protected function getContents()
+ {
+ return $this->engine->get($this->path, $this->gatherData());
+ }
+
+ /**
+
+
+
+ $this->view = $view;
+ $this->path = $path;
+ $this->engine = $engine;
+ $this->factory = $factory;
+
+ $this->data = $data instanceof Arrayable ? $data->toArray() : (array) $data;
+ }
+
+ /**
+ * Get the string contents of the view.
+ *
+ * @param callable|null $callback
+ * @return array|string
+ *
+ * @throws \Throwable
+ */
+ public function render(callable $callback = null)
+ {
+ try {
+ $contents = $this->renderContents();
+
+ $response = isset($callback) ? call_user_func($callback, $this, $contents) : null;
+
+ // Once we have the contents of the view, we will flush the sections if we are
+ // done rendering all views so that there is nothing left hanging over when
+ // another view gets rendered in the future by the application developer.
+ $this->factory->flushStateIfDoneRendering();
+
+ return ! is_null($response) ? $response : $contents;
+ } catch (Exception $e) {
+ $this->factory->flushState();
+
+ throw $e;
+ } catch (Throwable $e) {
+ $this->factory->flushState();
+
+ throw $e;
+ }
+ }
+
+
+
+
+ * @return $this
+ */
+ public function setContent($content)
+ {
+ $this->original = $content;
+
+ // If the content is "JSONable" we will set the appropriate header and convert
+ // the content to JSON. This is useful when returning something like models
+ // from routes that will be automatically transformed to their JSON form.
+ if ($this->shouldBeJson($content)) {
+ $this->header('Content-Type', 'application/json');
+
+ $content = $this->morphToJson($content);
+ }
+
+ // If this content implements the "Renderable" interface then we will call the
+ // render method on the object so we will avoid any "__toString" exceptions
+ // that might be thrown and have their errors obscured by PHP's handling.
+ elseif ($content instanceof Renderable) {
+ $content = $content->render();
+ }
+
+ parent::setContent($content);
+
+ return $this;
+ }
+
+ /**
+ * Determine if the given content should be turned into JSON.
+ *
+ * @param mixed $content
+ * @return bool
+ */
+ protected function shouldBeJson($content)
+ {
+ return $content instanceof Arrayable ||
+ $content instanceof Jsonable ||
+ $content instanceof ArrayObject ||
+ $content instanceof JsonSerializable ||
+ is_array($content);
+
+
+
+ 500 => 'Internal Server Error',
+ 501 => 'Not Implemented',
+ 502 => 'Bad Gateway',
+ 503 => 'Service Unavailable',
+ 504 => 'Gateway Timeout',
+ 505 => 'HTTP Version Not Supported',
+ 506 => 'Variant Also Negotiates', // RFC2295
+ 507 => 'Insufficient Storage', // RFC4918
+ 508 => 'Loop Detected', // RFC5842
+ 510 => 'Not Extended', // RFC2774
+ 511 => 'Network Authentication Required', // RFC6585
+ ];
+
+ /**
+ * @throws \InvalidArgumentException When the HTTP status code is not valid
+ */
+ public function __construct($content = '', int $status = 200, array $headers = [])
+ {
+ $this->headers = new ResponseHeaderBag($headers);
+ $this->setContent($content);
+ $this->setStatusCode($status);
+ $this->setProtocolVersion('1.0');
+ }
+
+ /**
+ * Factory method for chainability.
+ *
+ * Example:
+ *
+ * return Response::create($body, 200)
+ * ->setSharedMaxAge(300);
+ *
+ * @param mixed $content The response content, see setContent()
+ * @param int $status The response status code
+ * @param array $headers An array of response headers
+ *
+ * @return static
+ */
+ public static function create($content = '', $status = 200, $headers = [])
+ {
+
+
+ +0 of 0Illuminate\View\View {#803} +
*/
+ public static function toResponse($request, $response)
+ {
+ if ($response instanceof Responsable) {
+ $response = $response->toResponse($request);
+ }
+
+ if ($response instanceof PsrResponseInterface) {
+ $response = (new HttpFoundationFactory)->createResponse($response);
+ } elseif ($response instanceof Model && $response->wasRecentlyCreated) {
+ $response = new JsonResponse($response, 201);
+ } elseif (! $response instanceof SymfonyResponse &&
+ ($response instanceof Arrayable ||
+ $response instanceof Jsonable ||
+ $response instanceof ArrayObject ||
+ $response instanceof JsonSerializable ||
+ is_array($response))) {
+ $response = new JsonResponse($response);
+ } elseif (! $response instanceof SymfonyResponse) {
+ $response = new Response($response);
+ }
+
+ if ($response->getStatusCode() === Response::HTTP_NOT_MODIFIED) {
+ $response->setNotModified();
+ }
+
+ return $response->prepare($request);
+ }
+
+ /**
+ * Substitute the route bindings onto the route.
+ *
+ * @param \Illuminate\Routing\Route $route
+ * @return \Illuminate\Routing\Route
+ *
+ * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
+ */
+ public function substituteBindings($route)
+ {
+ foreach ($route->parameters() as $key => $value) {
+
+
+ +0 of 0Illuminate\View\View {#803} +
* Sort the given middleware by priority.
+ *
+ * @param \Illuminate\Support\Collection $middlewares
+ * @return array
+ */
+ protected function sortMiddleware(Collection $middlewares)
+ {
+ return (new SortedMiddleware($this->middlewarePriority, $middlewares))->all();
+ }
+
+ /**
+ * Create a response instance from the given value.
+ *
+ * @param \Symfony\Component\HttpFoundation\Request $request
+ * @param mixed $response
+ * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
+ */
+ public function prepareResponse($request, $response)
+ {
+ return static::toResponse($request, $response);
+ }
+
+ /**
+ * Static version of prepareResponse.
+ *
+ * @param \Symfony\Component\HttpFoundation\Request $request
+ * @param mixed $response
+ * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
+ */
+ public static function toResponse($request, $response)
+ {
+ if ($response instanceof Responsable) {
+ $response = $response->toResponse($request);
+ }
+
+ if ($response instanceof PsrResponseInterface) {
+ $response = (new HttpFoundationFactory)->createResponse($response);
+ } elseif ($response instanceof Model && $response->wasRecentlyCreated) {
+ $response = new JsonResponse($response, 201);
+ } elseif (! $response instanceof SymfonyResponse &&
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
+0 of 0Illuminate\View\View {#803} +
/**
+ * Run the given route within a Stack "onion" instance.
+ *
+ * @param \Illuminate\Routing\Route $route
+ * @param \Illuminate\Http\Request $request
+ * @return mixed
+ */
+ protected function runRouteWithinStack(Route $route, Request $request)
+ {
+ $shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
+ $this->container->make('middleware.disable') === true;
+
+ $middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
+
+ return (new Pipeline($this->container))
+ ->send($request)
+ ->through($middleware)
+ ->then(function ($request) use ($route) {
+ return $this->prepareResponse(
+ $request, $route->run()
+ );
+ });
+ }
+
+ /**
+ * Gather the middleware for the given route with resolved class names.
+ *
+ * @param \Illuminate\Routing\Route $route
+ * @return array
+ */
+ public function gatherRouteMiddleware(Route $route)
+ {
+ $middleware = collect($route->gatherMiddleware())->map(function ($name) {
+ return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
+ })->flatten();
+
+ return $this->sortMiddleware($middleware);
+ }
+
+ /**
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
+0 of 0Illuminate\View\View {#803} +
use Symfony\Component\Debug\Exception\FatalThrowableError;
+
+/**
+ * This extended pipeline catches any exceptions that occur during each slice.
+ *
+ * The exceptions are converted to HTTP responses for proper middleware handling.
+ */
+class Pipeline extends BasePipeline
+{
+ /**
+ * Get the final piece of the Closure onion.
+ *
+ * @param \Closure $destination
+ * @return \Closure
+ */
+ protected function prepareDestination(Closure $destination)
+ {
+ return function ($passable) use ($destination) {
+ try {
+ return $destination($passable);
+ } catch (Exception $e) {
+ return $this->handleException($passable, $e);
+ } catch (Throwable $e) {
+ return $this->handleException($passable, new FatalThrowableError($e));
+ }
+ };
+ }
+
+ /**
+ * Get a Closure that represents a slice of the application onion.
+ *
+ * @return \Closure
+ */
+ protected function carry()
+ {
+ return function ($stack, $pipe) {
+ return function ($passable) use ($stack, $pipe) {
+ try {
+ $slice = parent::carry();
+
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
if (PyCart::where('session_id', $sessionId)->get()->first() == null) {
+ // Thì tạo ra pycart cho session đó
+ $pycart = new PyCart();
+ $pycart->session_id = $sessionId;
+ $pycart->trangthai = 'hoat_dong';
+ $pycart->save();
+ }
+ }
+ else{
+ // Đã đăng nhập rồi
+ if(PyCart::where('user_id',Auth::user()->id)->get()->first() == null)
+ {
+ // Thì tạo pycart cho user đó
+ $pycart = new PyCart();
+ $pycart->user_id = Auth::user()->id;
+ $pycart->trangthai = 'hoat_dong';
+ $pycart->save();
+ }
+ }
+ return $next($request);
+ }
+}
+
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
// the appropriate method and arguments, returning the results back out.
+ return $pipe($passable, $stack);
+ } elseif (! is_object($pipe)) {
+ [$name, $parameters] = $this->parsePipeString($pipe);
+
+ // If the pipe is a string we will parse the string and resolve the class out
+ // of the dependency injection container. We can then build a callable and
+ // execute the pipe function giving in the parameters that are required.
+ $pipe = $this->getContainer()->make($name);
+
+ $parameters = array_merge([$passable, $stack], $parameters);
+ } else {
+ // If the pipe is already an object we'll just make a callable and pass it to
+ // the pipe as-is. There is no need to do any extra parsing and formatting
+ // since the object we're given was already a fully instantiated object.
+ $parameters = [$passable, $stack];
+ }
+
+ $response = method_exists($pipe, $this->method)
+ ? $pipe->{$this->method}(...$parameters)
+ : $pipe(...$parameters);
+
+ return $response instanceof Responsable
+ ? $response->toResponse($this->getContainer()->make(Request::class))
+ : $response;
+ };
+ };
+ }
+
+ /**
+ * Parse full pipe string to get name and parameters.
+ *
+ * @param string $pipe
+ * @return array
+ */
+ protected function parsePipeString($pipe)
+ {
+ [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
+
+ if (is_string($parameters)) {
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
+0 of 0Closure($passable) {#682 …4} +
return $this->handleException($passable, new FatalThrowableError($e));
+ }
+ };
+ }
+
+ /**
+ * Get a Closure that represents a slice of the application onion.
+ *
+ * @return \Closure
+ */
+ protected function carry()
+ {
+ return function ($stack, $pipe) {
+ return function ($passable) use ($stack, $pipe) {
+ try {
+ $slice = parent::carry();
+
+ $callable = $slice($stack, $pipe);
+
+ return $callable($passable);
+ } catch (Exception $e) {
+ return $this->handleException($passable, $e);
+ } catch (Throwable $e) {
+ return $this->handleException($passable, new FatalThrowableError($e));
+ }
+ };
+ };
+ }
+
+ /**
+ * Handle the given exception.
+ *
+ * @param mixed $passable
+ * @param \Exception $e
+ * @return mixed
+ *
+ * @throws \Exception
+ */
+ protected function handleException($passable, Exception $e)
+ {
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
if (Auth::check()) {
+ if (Auth::user()->verify_code == 'da_kich_hoat') {
+ $migrate_info = Migrate_info::where('email',Auth::user()->email)->where('trangthai','unmigrated')->get()->first();
+ if($migrate_info == null){
+ return $next($request);
+ }else{
+ $sodudau = Auth::user()->balance;
+ Auth::user()->balance = Auth::user()->balance + $migrate_info->sodu;
+ $migrate_info->trangthai = 'migrated';
+ $migrate_info->save();
+ Auth::user()->save();
+ $soducuoi = Auth::user()->balance;
+ $balance_change = new Balance_change;
+ $balance_change->save_history($migrate_info->sodu,'cong',$sodudau,$soducuoi,'Tiền từ shop acc cũ');
+ session()->flash('message','Hệ thống hoàn tiền từ shop accminecraft cũ cho bạn ở lần đăng nhập đầu tiên. Kiểm tra số dư nhé');
+ return $next($request);
+ }
+ }
+ }else{
+ return $next($request);
+ }
+ }
+}
+
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
// the appropriate method and arguments, returning the results back out.
+ return $pipe($passable, $stack);
+ } elseif (! is_object($pipe)) {
+ [$name, $parameters] = $this->parsePipeString($pipe);
+
+ // If the pipe is a string we will parse the string and resolve the class out
+ // of the dependency injection container. We can then build a callable and
+ // execute the pipe function giving in the parameters that are required.
+ $pipe = $this->getContainer()->make($name);
+
+ $parameters = array_merge([$passable, $stack], $parameters);
+ } else {
+ // If the pipe is already an object we'll just make a callable and pass it to
+ // the pipe as-is. There is no need to do any extra parsing and formatting
+ // since the object we're given was already a fully instantiated object.
+ $parameters = [$passable, $stack];
+ }
+
+ $response = method_exists($pipe, $this->method)
+ ? $pipe->{$this->method}(...$parameters)
+ : $pipe(...$parameters);
+
+ return $response instanceof Responsable
+ ? $response->toResponse($this->getContainer()->make(Request::class))
+ : $response;
+ };
+ };
+ }
+
+ /**
+ * Parse full pipe string to get name and parameters.
+ *
+ * @param string $pipe
+ * @return array
+ */
+ protected function parsePipeString($pipe)
+ {
+ [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
+
+ if (is_string($parameters)) {
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
+0 of 0Closure($passable) {#736 …4} +
return $this->handleException($passable, new FatalThrowableError($e));
+ }
+ };
+ }
+
+ /**
+ * Get a Closure that represents a slice of the application onion.
+ *
+ * @return \Closure
+ */
+ protected function carry()
+ {
+ return function ($stack, $pipe) {
+ return function ($passable) use ($stack, $pipe) {
+ try {
+ $slice = parent::carry();
+
+ $callable = $slice($stack, $pipe);
+
+ return $callable($passable);
+ } catch (Exception $e) {
+ return $this->handleException($passable, $e);
+ } catch (Throwable $e) {
+ return $this->handleException($passable, new FatalThrowableError($e));
+ }
+ };
+ };
+ }
+
+ /**
+ * Handle the given exception.
+ *
+ * @param mixed $passable
+ * @param \Exception $e
+ * @return mixed
+ *
+ * @throws \Exception
+ */
+ protected function handleException($passable, Exception $e)
+ {
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
* Handle an incoming request.
+ *
+ * @param \Illuminate\Http\Request $request
+ * @param \Closure $next
+ * @return mixed
+ */
+ public function handle($request, Closure $next)
+ {
+ if (session()->get('alreadyReg') == null) {
+ $app_refer = new Ads_refer;
+ if(request()->has('re')){
+ $site = Ads_site::where('refer_code',request()->get('re'))->get()->first();
+ $app_refer->ads_site_id = $site->id;
+ }
+ $app_refer->ip = request()->ip();
+ $app_refer->session = session()->getId();
+ $app_refer->save();
+ session()->put('alreadyReg', '1');
+ }
+ return $next($request);
+ // if (Auth::check()) {
+ // if (Auth::user()->verify_code != 'da_kich_hoat') {
+ // Auth::logout();
+ // return redirect(route('login'))->withErrors('Xin lỗi! Tài khoản của bạn chưa được kích hoạt, vui lòng check Email nhé!');
+ // } else {
+ // return $next($request);
+ // }
+ // } else {
+ // return $next($request);
+ // }
+ }
+}
+
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
// the appropriate method and arguments, returning the results back out.
+ return $pipe($passable, $stack);
+ } elseif (! is_object($pipe)) {
+ [$name, $parameters] = $this->parsePipeString($pipe);
+
+ // If the pipe is a string we will parse the string and resolve the class out
+ // of the dependency injection container. We can then build a callable and
+ // execute the pipe function giving in the parameters that are required.
+ $pipe = $this->getContainer()->make($name);
+
+ $parameters = array_merge([$passable, $stack], $parameters);
+ } else {
+ // If the pipe is already an object we'll just make a callable and pass it to
+ // the pipe as-is. There is no need to do any extra parsing and formatting
+ // since the object we're given was already a fully instantiated object.
+ $parameters = [$passable, $stack];
+ }
+
+ $response = method_exists($pipe, $this->method)
+ ? $pipe->{$this->method}(...$parameters)
+ : $pipe(...$parameters);
+
+ return $response instanceof Responsable
+ ? $response->toResponse($this->getContainer()->make(Request::class))
+ : $response;
+ };
+ };
+ }
+
+ /**
+ * Parse full pipe string to get name and parameters.
+ *
+ * @param string $pipe
+ * @return array
+ */
+ protected function parsePipeString($pipe)
+ {
+ [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
+
+ if (is_string($parameters)) {
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
+0 of 0Closure($passable) {#737 …4} +
return $this->handleException($passable, new FatalThrowableError($e));
+ }
+ };
+ }
+
+ /**
+ * Get a Closure that represents a slice of the application onion.
+ *
+ * @return \Closure
+ */
+ protected function carry()
+ {
+ return function ($stack, $pipe) {
+ return function ($passable) use ($stack, $pipe) {
+ try {
+ $slice = parent::carry();
+
+ $callable = $slice($stack, $pipe);
+
+ return $callable($passable);
+ } catch (Exception $e) {
+ return $this->handleException($passable, $e);
+ } catch (Throwable $e) {
+ return $this->handleException($passable, new FatalThrowableError($e));
+ }
+ };
+ };
+ }
+
+ /**
+ * Handle the given exception.
+ *
+ * @param mixed $passable
+ * @param \Exception $e
+ * @return mixed
+ *
+ * @throws \Exception
+ */
+ protected function handleException($passable, Exception $e)
+ {
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
/**
+ * Handle an incoming request.
+ *
+ * @param \Illuminate\Http\Request $request
+ * @param \Closure $next
+ * @return mixed
+ */
+ public function handle($request, Closure $next)
+ {
+ if (Auth::check()) {
+ if (Auth::user()->trangthai == 'ban') {
+ $free_date = Auth::user()->free_date;
+ $admin_note = Auth::user()->admin_note;
+ Auth::logout();
+ return redirect()->back()->withErrors('Tài khoản của bạn đang bị cấm đến ngày '.date("d-m-Y H:i:s",strtotime($free_date)).'<br> Lí do: '.$admin_note);
+ }else{
+ return $next($request);
+ }
+ }else{
+ return $next($request);
+ }
+
+ }
+}
+
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
// the appropriate method and arguments, returning the results back out.
+ return $pipe($passable, $stack);
+ } elseif (! is_object($pipe)) {
+ [$name, $parameters] = $this->parsePipeString($pipe);
+
+ // If the pipe is a string we will parse the string and resolve the class out
+ // of the dependency injection container. We can then build a callable and
+ // execute the pipe function giving in the parameters that are required.
+ $pipe = $this->getContainer()->make($name);
+
+ $parameters = array_merge([$passable, $stack], $parameters);
+ } else {
+ // If the pipe is already an object we'll just make a callable and pass it to
+ // the pipe as-is. There is no need to do any extra parsing and formatting
+ // since the object we're given was already a fully instantiated object.
+ $parameters = [$passable, $stack];
+ }
+
+ $response = method_exists($pipe, $this->method)
+ ? $pipe->{$this->method}(...$parameters)
+ : $pipe(...$parameters);
+
+ return $response instanceof Responsable
+ ? $response->toResponse($this->getContainer()->make(Request::class))
+ : $response;
+ };
+ };
+ }
+
+ /**
+ * Parse full pipe string to get name and parameters.
+ *
+ * @param string $pipe
+ * @return array
+ */
+ protected function parsePipeString($pipe)
+ {
+ [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
+
+ if (is_string($parameters)) {
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
+0 of 0Closure($passable) {#738 …4} +
return $this->handleException($passable, new FatalThrowableError($e));
+ }
+ };
+ }
+
+ /**
+ * Get a Closure that represents a slice of the application onion.
+ *
+ * @return \Closure
+ */
+ protected function carry()
+ {
+ return function ($stack, $pipe) {
+ return function ($passable) use ($stack, $pipe) {
+ try {
+ $slice = parent::carry();
+
+ $callable = $slice($stack, $pipe);
+
+ return $callable($passable);
+ } catch (Exception $e) {
+ return $this->handleException($passable, $e);
+ } catch (Throwable $e) {
+ return $this->handleException($passable, new FatalThrowableError($e));
+ }
+ };
+ };
+ }
+
+ /**
+ * Handle the given exception.
+ *
+ * @param mixed $passable
+ * @param \Exception $e
+ * @return mixed
+ *
+ * @throws \Exception
+ */
+ protected function handleException($passable, Exception $e)
+ {
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
use Closure;
+use Auth;
+use Cache;
+use Carbon\Carbon;
+class LastUserActivity
+{
+ /**
+ * Handle an incoming request.
+ *
+ * @param \Illuminate\Http\Request $request
+ * @param \Closure $next
+ * @return mixed
+ */
+ public function handle($request, Closure $next)
+ {
+ if(Auth::check()) {
+ $expiresAt = Carbon::now()->addMinutes(1);
+ Cache::put('user-is-online-' . Auth::user()->id, true, $expiresAt);
+ }
+ return $next($request);
+ }
+}
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
// the appropriate method and arguments, returning the results back out.
+ return $pipe($passable, $stack);
+ } elseif (! is_object($pipe)) {
+ [$name, $parameters] = $this->parsePipeString($pipe);
+
+ // If the pipe is a string we will parse the string and resolve the class out
+ // of the dependency injection container. We can then build a callable and
+ // execute the pipe function giving in the parameters that are required.
+ $pipe = $this->getContainer()->make($name);
+
+ $parameters = array_merge([$passable, $stack], $parameters);
+ } else {
+ // If the pipe is already an object we'll just make a callable and pass it to
+ // the pipe as-is. There is no need to do any extra parsing and formatting
+ // since the object we're given was already a fully instantiated object.
+ $parameters = [$passable, $stack];
+ }
+
+ $response = method_exists($pipe, $this->method)
+ ? $pipe->{$this->method}(...$parameters)
+ : $pipe(...$parameters);
+
+ return $response instanceof Responsable
+ ? $response->toResponse($this->getContainer()->make(Request::class))
+ : $response;
+ };
+ };
+ }
+
+ /**
+ * Parse full pipe string to get name and parameters.
+ *
+ * @param string $pipe
+ * @return array
+ */
+ protected function parsePipeString($pipe)
+ {
+ [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
+
+ if (is_string($parameters)) {
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
+0 of 0Closure($passable) {#739 …4} +
return $this->handleException($passable, new FatalThrowableError($e));
+ }
+ };
+ }
+
+ /**
+ * Get a Closure that represents a slice of the application onion.
+ *
+ * @return \Closure
+ */
+ protected function carry()
+ {
+ return function ($stack, $pipe) {
+ return function ($passable) use ($stack, $pipe) {
+ try {
+ $slice = parent::carry();
+
+ $callable = $slice($stack, $pipe);
+
+ return $callable($passable);
+ } catch (Exception $e) {
+ return $this->handleException($passable, $e);
+ } catch (Throwable $e) {
+ return $this->handleException($passable, new FatalThrowableError($e));
+ }
+ };
+ };
+ }
+
+ /**
+ * Handle the given exception.
+ *
+ * @param mixed $passable
+ * @param \Exception $e
+ * @return mixed
+ *
+ * @throws \Exception
+ */
+ protected function handleException($passable, Exception $e)
+ {
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
*/
+ public function __construct(Registrar $router)
+ {
+ $this->router = $router;
+ }
+
+ /**
+ * Handle an incoming request.
+ *
+ * @param \Illuminate\Http\Request $request
+ * @param \Closure $next
+ * @return mixed
+ */
+ public function handle($request, Closure $next)
+ {
+ $this->router->substituteBindings($route = $request->route());
+
+ $this->router->substituteImplicitBindings($route);
+
+ return $next($request);
+ }
+}
+
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
// the appropriate method and arguments, returning the results back out.
+ return $pipe($passable, $stack);
+ } elseif (! is_object($pipe)) {
+ [$name, $parameters] = $this->parsePipeString($pipe);
+
+ // If the pipe is a string we will parse the string and resolve the class out
+ // of the dependency injection container. We can then build a callable and
+ // execute the pipe function giving in the parameters that are required.
+ $pipe = $this->getContainer()->make($name);
+
+ $parameters = array_merge([$passable, $stack], $parameters);
+ } else {
+ // If the pipe is already an object we'll just make a callable and pass it to
+ // the pipe as-is. There is no need to do any extra parsing and formatting
+ // since the object we're given was already a fully instantiated object.
+ $parameters = [$passable, $stack];
+ }
+
+ $response = method_exists($pipe, $this->method)
+ ? $pipe->{$this->method}(...$parameters)
+ : $pipe(...$parameters);
+
+ return $response instanceof Responsable
+ ? $response->toResponse($this->getContainer()->make(Request::class))
+ : $response;
+ };
+ };
+ }
+
+ /**
+ * Parse full pipe string to get name and parameters.
+ *
+ * @param string $pipe
+ * @return array
+ */
+ protected function parsePipeString($pipe)
+ {
+ [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
+
+ if (is_string($parameters)) {
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
+0 of 0Closure($passable) {#740 …4} +
return $this->handleException($passable, new FatalThrowableError($e));
+ }
+ };
+ }
+
+ /**
+ * Get a Closure that represents a slice of the application onion.
+ *
+ * @return \Closure
+ */
+ protected function carry()
+ {
+ return function ($stack, $pipe) {
+ return function ($passable) use ($stack, $pipe) {
+ try {
+ $slice = parent::carry();
+
+ $callable = $slice($stack, $pipe);
+
+ return $callable($passable);
+ } catch (Exception $e) {
+ return $this->handleException($passable, $e);
+ } catch (Throwable $e) {
+ return $this->handleException($passable, new FatalThrowableError($e));
+ }
+ };
+ };
+ }
+
+ /**
+ * Handle the given exception.
+ *
+ * @param mixed $passable
+ * @param \Exception $e
+ * @return mixed
+ *
+ * @throws \Exception
+ */
+ protected function handleException($passable, Exception $e)
+ {
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
}
+
+ /**
+ * Handle an incoming request.
+ *
+ * @param \Illuminate\Http\Request $request
+ * @param \Closure $next
+ * @return mixed
+ *
+ * @throws \Illuminate\Session\TokenMismatchException
+ */
+ public function handle($request, Closure $next)
+ {
+ if (
+ $this->isReading($request) ||
+ $this->runningUnitTests() ||
+ $this->inExceptArray($request) ||
+ $this->tokensMatch($request)
+ ) {
+ return tap($next($request), function ($response) use ($request) {
+ if ($this->shouldAddXsrfTokenCookie()) {
+ $this->addCookieToResponse($request, $response);
+ }
+ });
+ }
+
+ throw new TokenMismatchException('CSRF token mismatch.');
+ }
+
+ /**
+ * Determine if the HTTP request uses a ‘read’ verb.
+ *
+ * @param \Illuminate\Http\Request $request
+ * @return bool
+ */
+ protected function isReading($request)
+ {
+ return in_array($request->method(), ['HEAD', 'GET', 'OPTIONS']);
+ }
+
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
// the appropriate method and arguments, returning the results back out.
+ return $pipe($passable, $stack);
+ } elseif (! is_object($pipe)) {
+ [$name, $parameters] = $this->parsePipeString($pipe);
+
+ // If the pipe is a string we will parse the string and resolve the class out
+ // of the dependency injection container. We can then build a callable and
+ // execute the pipe function giving in the parameters that are required.
+ $pipe = $this->getContainer()->make($name);
+
+ $parameters = array_merge([$passable, $stack], $parameters);
+ } else {
+ // If the pipe is already an object we'll just make a callable and pass it to
+ // the pipe as-is. There is no need to do any extra parsing and formatting
+ // since the object we're given was already a fully instantiated object.
+ $parameters = [$passable, $stack];
+ }
+
+ $response = method_exists($pipe, $this->method)
+ ? $pipe->{$this->method}(...$parameters)
+ : $pipe(...$parameters);
+
+ return $response instanceof Responsable
+ ? $response->toResponse($this->getContainer()->make(Request::class))
+ : $response;
+ };
+ };
+ }
+
+ /**
+ * Parse full pipe string to get name and parameters.
+ *
+ * @param string $pipe
+ * @return array
+ */
+ protected function parsePipeString($pipe)
+ {
+ [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
+
+ if (is_string($parameters)) {
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
+0 of 0Closure($passable) {#741 …4} +
return $this->handleException($passable, new FatalThrowableError($e));
+ }
+ };
+ }
+
+ /**
+ * Get a Closure that represents a slice of the application onion.
+ *
+ * @return \Closure
+ */
+ protected function carry()
+ {
+ return function ($stack, $pipe) {
+ return function ($passable) use ($stack, $pipe) {
+ try {
+ $slice = parent::carry();
+
+ $callable = $slice($stack, $pipe);
+
+ return $callable($passable);
+ } catch (Exception $e) {
+ return $this->handleException($passable, $e);
+ } catch (Throwable $e) {
+ return $this->handleException($passable, new FatalThrowableError($e));
+ }
+ };
+ };
+ }
+
+ /**
+ * Handle the given exception.
+ *
+ * @param mixed $passable
+ * @param \Exception $e
+ * @return mixed
+ *
+ * @throws \Exception
+ */
+ protected function handleException($passable, Exception $e)
+ {
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
* Handle an incoming request.
+ *
+ * @param \Illuminate\Http\Request $request
+ * @param \Closure $next
+ * @return mixed
+ */
+ public function handle($request, Closure $next)
+ {
+ // If the current session has an "errors" variable bound to it, we will share
+ // its value with all view instances so the views can easily access errors
+ // without having to bind. An empty bag is set when there aren't errors.
+ $this->view->share(
+ 'errors', $request->session()->get('errors') ?: new ViewErrorBag
+ );
+
+ // Putting the errors in the view for every view allows the developer to just
+ // assume that some errors are always available, which is convenient since
+ // they don't have to continually run checks for the presence of errors.
+
+ return $next($request);
+ }
+}
+
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
// the appropriate method and arguments, returning the results back out.
+ return $pipe($passable, $stack);
+ } elseif (! is_object($pipe)) {
+ [$name, $parameters] = $this->parsePipeString($pipe);
+
+ // If the pipe is a string we will parse the string and resolve the class out
+ // of the dependency injection container. We can then build a callable and
+ // execute the pipe function giving in the parameters that are required.
+ $pipe = $this->getContainer()->make($name);
+
+ $parameters = array_merge([$passable, $stack], $parameters);
+ } else {
+ // If the pipe is already an object we'll just make a callable and pass it to
+ // the pipe as-is. There is no need to do any extra parsing and formatting
+ // since the object we're given was already a fully instantiated object.
+ $parameters = [$passable, $stack];
+ }
+
+ $response = method_exists($pipe, $this->method)
+ ? $pipe->{$this->method}(...$parameters)
+ : $pipe(...$parameters);
+
+ return $response instanceof Responsable
+ ? $response->toResponse($this->getContainer()->make(Request::class))
+ : $response;
+ };
+ };
+ }
+
+ /**
+ * Parse full pipe string to get name and parameters.
+ *
+ * @param string $pipe
+ * @return array
+ */
+ protected function parsePipeString($pipe)
+ {
+ [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
+
+ if (is_string($parameters)) {
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
+0 of 0Closure($passable) {#742 …4} +
return $this->handleException($passable, new FatalThrowableError($e));
+ }
+ };
+ }
+
+ /**
+ * Get a Closure that represents a slice of the application onion.
+ *
+ * @return \Closure
+ */
+ protected function carry()
+ {
+ return function ($stack, $pipe) {
+ return function ($passable) use ($stack, $pipe) {
+ try {
+ $slice = parent::carry();
+
+ $callable = $slice($stack, $pipe);
+
+ return $callable($passable);
+ } catch (Exception $e) {
+ return $this->handleException($passable, $e);
+ } catch (Throwable $e) {
+ return $this->handleException($passable, new FatalThrowableError($e));
+ }
+ };
+ };
+ }
+
+ /**
+ * Handle the given exception.
+ *
+ * @param mixed $passable
+ * @param \Exception $e
+ * @return mixed
+ *
+ * @throws \Exception
+ */
+ protected function handleException($passable, Exception $e)
+ {
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
* @param \Illuminate\Http\Request $request
+ * @param \Closure $next
+ * @return mixed
+ */
+ public function handle($request, Closure $next)
+ {
+ if (! $this->sessionConfigured()) {
+ return $next($request);
+ }
+
+ // If a session driver has been configured, we will need to start the session here
+ // so that the data is ready for an application. Note that the Laravel sessions
+ // do not make use of PHP "native" sessions in any way since they are crappy.
+ $request->setLaravelSession(
+ $session = $this->startSession($request)
+ );
+
+ $this->collectGarbage($session);
+
+ $response = $next($request);
+
+ $this->storeCurrentUrl($request, $session);
+
+ $this->addCookieToResponse($response, $session);
+
+ // Again, if the session has been configured we will need to close out the session
+ // so that the attributes may be persisted to some storage medium. We will also
+ // add the session identifier cookie to the application response headers now.
+ $this->saveSession($request);
+
+ return $response;
+ }
+
+ /**
+ * Start the session for the given request.
+ *
+ * @param \Illuminate\Http\Request $request
+ * @return \Illuminate\Contracts\Session\Session
+ */
+ protected function startSession(Request $request)
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
// the appropriate method and arguments, returning the results back out.
+ return $pipe($passable, $stack);
+ } elseif (! is_object($pipe)) {
+ [$name, $parameters] = $this->parsePipeString($pipe);
+
+ // If the pipe is a string we will parse the string and resolve the class out
+ // of the dependency injection container. We can then build a callable and
+ // execute the pipe function giving in the parameters that are required.
+ $pipe = $this->getContainer()->make($name);
+
+ $parameters = array_merge([$passable, $stack], $parameters);
+ } else {
+ // If the pipe is already an object we'll just make a callable and pass it to
+ // the pipe as-is. There is no need to do any extra parsing and formatting
+ // since the object we're given was already a fully instantiated object.
+ $parameters = [$passable, $stack];
+ }
+
+ $response = method_exists($pipe, $this->method)
+ ? $pipe->{$this->method}(...$parameters)
+ : $pipe(...$parameters);
+
+ return $response instanceof Responsable
+ ? $response->toResponse($this->getContainer()->make(Request::class))
+ : $response;
+ };
+ };
+ }
+
+ /**
+ * Parse full pipe string to get name and parameters.
+ *
+ * @param string $pipe
+ * @return array
+ */
+ protected function parsePipeString($pipe)
+ {
+ [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
+
+ if (is_string($parameters)) {
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
+0 of 0Closure($passable) {#743 …4} +
return $this->handleException($passable, new FatalThrowableError($e));
+ }
+ };
+ }
+
+ /**
+ * Get a Closure that represents a slice of the application onion.
+ *
+ * @return \Closure
+ */
+ protected function carry()
+ {
+ return function ($stack, $pipe) {
+ return function ($passable) use ($stack, $pipe) {
+ try {
+ $slice = parent::carry();
+
+ $callable = $slice($stack, $pipe);
+
+ return $callable($passable);
+ } catch (Exception $e) {
+ return $this->handleException($passable, $e);
+ } catch (Throwable $e) {
+ return $this->handleException($passable, new FatalThrowableError($e));
+ }
+ };
+ };
+ }
+
+ /**
+ * Handle the given exception.
+ *
+ * @param mixed $passable
+ * @param \Exception $e
+ * @return mixed
+ *
+ * @throws \Exception
+ */
+ protected function handleException($passable, Exception $e)
+ {
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
* Create a new CookieQueue instance.
+ *
+ * @param \Illuminate\Contracts\Cookie\QueueingFactory $cookies
+ * @return void
+ */
+ public function __construct(CookieJar $cookies)
+ {
+ $this->cookies = $cookies;
+ }
+
+ /**
+ * Handle an incoming request.
+ *
+ * @param \Illuminate\Http\Request $request
+ * @param \Closure $next
+ * @return mixed
+ */
+ public function handle($request, Closure $next)
+ {
+ $response = $next($request);
+
+ foreach ($this->cookies->getQueuedCookies() as $cookie) {
+ $response->headers->setCookie($cookie);
+ }
+
+ return $response;
+ }
+}
+
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
// the appropriate method and arguments, returning the results back out.
+ return $pipe($passable, $stack);
+ } elseif (! is_object($pipe)) {
+ [$name, $parameters] = $this->parsePipeString($pipe);
+
+ // If the pipe is a string we will parse the string and resolve the class out
+ // of the dependency injection container. We can then build a callable and
+ // execute the pipe function giving in the parameters that are required.
+ $pipe = $this->getContainer()->make($name);
+
+ $parameters = array_merge([$passable, $stack], $parameters);
+ } else {
+ // If the pipe is already an object we'll just make a callable and pass it to
+ // the pipe as-is. There is no need to do any extra parsing and formatting
+ // since the object we're given was already a fully instantiated object.
+ $parameters = [$passable, $stack];
+ }
+
+ $response = method_exists($pipe, $this->method)
+ ? $pipe->{$this->method}(...$parameters)
+ : $pipe(...$parameters);
+
+ return $response instanceof Responsable
+ ? $response->toResponse($this->getContainer()->make(Request::class))
+ : $response;
+ };
+ };
+ }
+
+ /**
+ * Parse full pipe string to get name and parameters.
+ *
+ * @param string $pipe
+ * @return array
+ */
+ protected function parsePipeString($pipe)
+ {
+ [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
+
+ if (is_string($parameters)) {
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
+0 of 0Closure($passable) {#744 …4} +
return $this->handleException($passable, new FatalThrowableError($e));
+ }
+ };
+ }
+
+ /**
+ * Get a Closure that represents a slice of the application onion.
+ *
+ * @return \Closure
+ */
+ protected function carry()
+ {
+ return function ($stack, $pipe) {
+ return function ($passable) use ($stack, $pipe) {
+ try {
+ $slice = parent::carry();
+
+ $callable = $slice($stack, $pipe);
+
+ return $callable($passable);
+ } catch (Exception $e) {
+ return $this->handleException($passable, $e);
+ } catch (Throwable $e) {
+ return $this->handleException($passable, new FatalThrowableError($e));
+ }
+ };
+ };
+ }
+
+ /**
+ * Handle the given exception.
+ *
+ * @param mixed $passable
+ * @param \Exception $e
+ * @return mixed
+ *
+ * @throws \Exception
+ */
+ protected function handleException($passable, Exception $e)
+ {
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
* Disable encryption for the given cookie name(s).
+ *
+ * @param string|array $name
+ * @return void
+ */
+ public function disableFor($name)
+ {
+ $this->except = array_merge($this->except, (array) $name);
+ }
+
+ /**
+ * Handle an incoming request.
+ *
+ * @param \Illuminate\Http\Request $request
+ * @param \Closure $next
+ * @return \Symfony\Component\HttpFoundation\Response
+ */
+ public function handle($request, Closure $next)
+ {
+ return $this->encrypt($next($this->decrypt($request)));
+ }
+
+ /**
+ * Decrypt the cookies on the request.
+ *
+ * @param \Symfony\Component\HttpFoundation\Request $request
+ * @return \Symfony\Component\HttpFoundation\Request
+ */
+ protected function decrypt(Request $request)
+ {
+ foreach ($request->cookies as $key => $cookie) {
+ if ($this->isDisabled($key)) {
+ continue;
+ }
+
+ try {
+ $request->cookies->set($key, $this->decryptCookie($key, $cookie));
+ } catch (DecryptException $e) {
+ $request->cookies->set($key, null);
+ }
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
// the appropriate method and arguments, returning the results back out.
+ return $pipe($passable, $stack);
+ } elseif (! is_object($pipe)) {
+ [$name, $parameters] = $this->parsePipeString($pipe);
+
+ // If the pipe is a string we will parse the string and resolve the class out
+ // of the dependency injection container. We can then build a callable and
+ // execute the pipe function giving in the parameters that are required.
+ $pipe = $this->getContainer()->make($name);
+
+ $parameters = array_merge([$passable, $stack], $parameters);
+ } else {
+ // If the pipe is already an object we'll just make a callable and pass it to
+ // the pipe as-is. There is no need to do any extra parsing and formatting
+ // since the object we're given was already a fully instantiated object.
+ $parameters = [$passable, $stack];
+ }
+
+ $response = method_exists($pipe, $this->method)
+ ? $pipe->{$this->method}(...$parameters)
+ : $pipe(...$parameters);
+
+ return $response instanceof Responsable
+ ? $response->toResponse($this->getContainer()->make(Request::class))
+ : $response;
+ };
+ };
+ }
+
+ /**
+ * Parse full pipe string to get name and parameters.
+ *
+ * @param string $pipe
+ * @return array
+ */
+ protected function parsePipeString($pipe)
+ {
+ [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
+
+ if (is_string($parameters)) {
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
+0 of 0Closure($passable) {#745 …4} +
return $this->handleException($passable, new FatalThrowableError($e));
+ }
+ };
+ }
+
+ /**
+ * Get a Closure that represents a slice of the application onion.
+ *
+ * @return \Closure
+ */
+ protected function carry()
+ {
+ return function ($stack, $pipe) {
+ return function ($passable) use ($stack, $pipe) {
+ try {
+ $slice = parent::carry();
+
+ $callable = $slice($stack, $pipe);
+
+ return $callable($passable);
+ } catch (Exception $e) {
+ return $this->handleException($passable, $e);
+ } catch (Throwable $e) {
+ return $this->handleException($passable, new FatalThrowableError($e));
+ }
+ };
+ };
+ }
+
+ /**
+ * Handle the given exception.
+ *
+ * @param mixed $passable
+ * @param \Exception $e
+ * @return mixed
+ *
+ * @throws \Exception
+ */
+ protected function handleException($passable, Exception $e)
+ {
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
public function via($method)
+ {
+ $this->method = $method;
+
+ return $this;
+ }
+
+ /**
+ * Run the pipeline with a final destination callback.
+ *
+ * @param \Closure $destination
+ * @return mixed
+ */
+ public function then(Closure $destination)
+ {
+ $pipeline = array_reduce(
+ array_reverse($this->pipes), $this->carry(), $this->prepareDestination($destination)
+ );
+
+ return $pipeline($this->passable);
+ }
+
+ /**
+ * Run the pipeline and return the result.
+ *
+ * @return mixed
+ */
+ public function thenReturn()
+ {
+ return $this->then(function ($passable) {
+ return $passable;
+ });
+ }
+
+ /**
+ * Get the final piece of the Closure onion.
+ *
+ * @param \Closure $destination
+ * @return \Closure
+ */
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
*
+ * @param \Illuminate\Routing\Route $route
+ * @param \Illuminate\Http\Request $request
+ * @return mixed
+ */
+ protected function runRouteWithinStack(Route $route, Request $request)
+ {
+ $shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
+ $this->container->make('middleware.disable') === true;
+
+ $middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
+
+ return (new Pipeline($this->container))
+ ->send($request)
+ ->through($middleware)
+ ->then(function ($request) use ($route) {
+ return $this->prepareResponse(
+ $request, $route->run()
+ );
+ });
+ }
+
+ /**
+ * Gather the middleware for the given route with resolved class names.
+ *
+ * @param \Illuminate\Routing\Route $route
+ * @return array
+ */
+ public function gatherRouteMiddleware(Route $route)
+ {
+ $middleware = collect($route->gatherMiddleware())->map(function ($name) {
+ return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
+ })->flatten();
+
+ return $this->sortMiddleware($middleware);
+ }
+
+ /**
+ * Sort the given middleware by priority.
+ *
+
+
+ +0 of 0Closure($request) {#681 …4} +
return $route;
+ }
+
+ /**
+ * Return the response for the given route.
+ *
+ * @param \Illuminate\Http\Request $request
+ * @param \Illuminate\Routing\Route $route
+ * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
+ */
+ protected function runRoute(Request $request, Route $route)
+ {
+ $request->setRouteResolver(function () use ($route) {
+ return $route;
+ });
+
+ $this->events->dispatch(new Events\RouteMatched($route, $request));
+
+ return $this->prepareResponse($request,
+ $this->runRouteWithinStack($route, $request)
+ );
+ }
+
+ /**
+ * Run the given route within a Stack "onion" instance.
+ *
+ * @param \Illuminate\Routing\Route $route
+ * @param \Illuminate\Http\Request $request
+ * @return mixed
+ */
+ protected function runRouteWithinStack(Route $route, Request $request)
+ {
+ $shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
+ $this->container->make('middleware.disable') === true;
+
+ $middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
+
+ return (new Pipeline($this->container))
+ ->send($request)
+ ->through($middleware)
+
+
+ +0 of 0Illuminate\Routing\Route {#330} +
+0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
*
+ * @param \Illuminate\Http\Request $request
+ * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
+ */
+ public function dispatch(Request $request)
+ {
+ $this->currentRequest = $request;
+
+ return $this->dispatchToRoute($request);
+ }
+
+ /**
+ * Dispatch the request to a route and return the response.
+ *
+ * @param \Illuminate\Http\Request $request
+ * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
+ */
+ public function dispatchToRoute(Request $request)
+ {
+ return $this->runRoute($request, $this->findRoute($request));
+ }
+
+ /**
+ * Find the route matching a given request.
+ *
+ * @param \Illuminate\Http\Request $request
+ * @return \Illuminate\Routing\Route
+ */
+ protected function findRoute($request)
+ {
+ $this->current = $route = $this->routes->match($request);
+
+ $this->container->instance(Route::class, $route);
+
+ return $route;
+ }
+
+ /**
+ * Return the response for the given route.
+ *
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
+0 of 0Illuminate\Routing\Route {#330} +
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
+ */
+ public function respondWithRoute($name)
+ {
+ $route = tap($this->routes->getByName($name))->bind($this->currentRequest);
+
+ return $this->runRoute($this->currentRequest, $route);
+ }
+
+ /**
+ * Dispatch the request to the application.
+ *
+ * @param \Illuminate\Http\Request $request
+ * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
+ */
+ public function dispatch(Request $request)
+ {
+ $this->currentRequest = $request;
+
+ return $this->dispatchToRoute($request);
+ }
+
+ /**
+ * Dispatch the request to a route and return the response.
+ *
+ * @param \Illuminate\Http\Request $request
+ * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
+ */
+ public function dispatchToRoute(Request $request)
+ {
+ return $this->runRoute($request, $this->findRoute($request));
+ }
+
+ /**
+ * Find the route matching a given request.
+ *
+ * @param \Illuminate\Http\Request $request
+ * @return \Illuminate\Routing\Route
+ */
+ protected function findRoute($request)
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
* @return void
+ */
+ public function bootstrap()
+ {
+ if (! $this->app->hasBeenBootstrapped()) {
+ $this->app->bootstrapWith($this->bootstrappers());
+ }
+ }
+
+ /**
+ * Get the route dispatcher callback.
+ *
+ * @return \Closure
+ */
+ protected function dispatchToRouter()
+ {
+ return function ($request) {
+ $this->app->instance('request', $request);
+
+ return $this->router->dispatch($request);
+ };
+ }
+
+ /**
+ * Call the terminate method on any terminable middleware.
+ *
+ * @param \Illuminate\Http\Request $request
+ * @param \Illuminate\Http\Response $response
+ * @return void
+ */
+ public function terminate($request, $response)
+ {
+ $this->terminateMiddleware($request, $response);
+
+ $this->app->terminate();
+ }
+
+ /**
+ * Call the terminate method on any terminable middleware.
+ *
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
use Symfony\Component\Debug\Exception\FatalThrowableError;
+
+/**
+ * This extended pipeline catches any exceptions that occur during each slice.
+ *
+ * The exceptions are converted to HTTP responses for proper middleware handling.
+ */
+class Pipeline extends BasePipeline
+{
+ /**
+ * Get the final piece of the Closure onion.
+ *
+ * @param \Closure $destination
+ * @return \Closure
+ */
+ protected function prepareDestination(Closure $destination)
+ {
+ return function ($passable) use ($destination) {
+ try {
+ return $destination($passable);
+ } catch (Exception $e) {
+ return $this->handleException($passable, $e);
+ } catch (Throwable $e) {
+ return $this->handleException($passable, new FatalThrowableError($e));
+ }
+ };
+ }
+
+ /**
+ * Get a Closure that represents a slice of the application onion.
+ *
+ * @return \Closure
+ */
+ protected function carry()
+ {
+ return function ($stack, $pipe) {
+ return function ($passable) use ($stack, $pipe) {
+ try {
+ $slice = parent::carry();
+
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
+namespace Illuminate\Foundation\Http\Middleware;
+
+use Closure;
+use Symfony\Component\HttpFoundation\ParameterBag;
+
+class TransformsRequest
+{
+ /**
+ * Handle an incoming request.
+ *
+ * @param \Illuminate\Http\Request $request
+ * @param \Closure $next
+ * @return mixed
+ */
+ public function handle($request, Closure $next)
+ {
+ $this->clean($request);
+
+ return $next($request);
+ }
+
+ /**
+ * Clean the request's data.
+ *
+ * @param \Illuminate\Http\Request $request
+ * @return void
+ */
+ protected function clean($request)
+ {
+ $this->cleanParameterBag($request->query);
+
+ if ($request->isJson()) {
+ $this->cleanParameterBag($request->json());
+ } elseif ($request->request !== $request->query) {
+ $this->cleanParameterBag($request->request);
+ }
+ }
+
+ /**
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
// the appropriate method and arguments, returning the results back out.
+ return $pipe($passable, $stack);
+ } elseif (! is_object($pipe)) {
+ [$name, $parameters] = $this->parsePipeString($pipe);
+
+ // If the pipe is a string we will parse the string and resolve the class out
+ // of the dependency injection container. We can then build a callable and
+ // execute the pipe function giving in the parameters that are required.
+ $pipe = $this->getContainer()->make($name);
+
+ $parameters = array_merge([$passable, $stack], $parameters);
+ } else {
+ // If the pipe is already an object we'll just make a callable and pass it to
+ // the pipe as-is. There is no need to do any extra parsing and formatting
+ // since the object we're given was already a fully instantiated object.
+ $parameters = [$passable, $stack];
+ }
+
+ $response = method_exists($pipe, $this->method)
+ ? $pipe->{$this->method}(...$parameters)
+ : $pipe(...$parameters);
+
+ return $response instanceof Responsable
+ ? $response->toResponse($this->getContainer()->make(Request::class))
+ : $response;
+ };
+ };
+ }
+
+ /**
+ * Parse full pipe string to get name and parameters.
+ *
+ * @param string $pipe
+ * @return array
+ */
+ protected function parsePipeString($pipe)
+ {
+ [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
+
+ if (is_string($parameters)) {
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
+0 of 0Closure($passable) {#261 …4} +
return $this->handleException($passable, new FatalThrowableError($e));
+ }
+ };
+ }
+
+ /**
+ * Get a Closure that represents a slice of the application onion.
+ *
+ * @return \Closure
+ */
+ protected function carry()
+ {
+ return function ($stack, $pipe) {
+ return function ($passable) use ($stack, $pipe) {
+ try {
+ $slice = parent::carry();
+
+ $callable = $slice($stack, $pipe);
+
+ return $callable($passable);
+ } catch (Exception $e) {
+ return $this->handleException($passable, $e);
+ } catch (Throwable $e) {
+ return $this->handleException($passable, new FatalThrowableError($e));
+ }
+ };
+ };
+ }
+
+ /**
+ * Handle the given exception.
+ *
+ * @param mixed $passable
+ * @param \Exception $e
+ * @return mixed
+ *
+ * @throws \Exception
+ */
+ protected function handleException($passable, Exception $e)
+ {
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
+namespace Illuminate\Foundation\Http\Middleware;
+
+use Closure;
+use Symfony\Component\HttpFoundation\ParameterBag;
+
+class TransformsRequest
+{
+ /**
+ * Handle an incoming request.
+ *
+ * @param \Illuminate\Http\Request $request
+ * @param \Closure $next
+ * @return mixed
+ */
+ public function handle($request, Closure $next)
+ {
+ $this->clean($request);
+
+ return $next($request);
+ }
+
+ /**
+ * Clean the request's data.
+ *
+ * @param \Illuminate\Http\Request $request
+ * @return void
+ */
+ protected function clean($request)
+ {
+ $this->cleanParameterBag($request->query);
+
+ if ($request->isJson()) {
+ $this->cleanParameterBag($request->json());
+ } elseif ($request->request !== $request->query) {
+ $this->cleanParameterBag($request->request);
+ }
+ }
+
+ /**
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
// the appropriate method and arguments, returning the results back out.
+ return $pipe($passable, $stack);
+ } elseif (! is_object($pipe)) {
+ [$name, $parameters] = $this->parsePipeString($pipe);
+
+ // If the pipe is a string we will parse the string and resolve the class out
+ // of the dependency injection container. We can then build a callable and
+ // execute the pipe function giving in the parameters that are required.
+ $pipe = $this->getContainer()->make($name);
+
+ $parameters = array_merge([$passable, $stack], $parameters);
+ } else {
+ // If the pipe is already an object we'll just make a callable and pass it to
+ // the pipe as-is. There is no need to do any extra parsing and formatting
+ // since the object we're given was already a fully instantiated object.
+ $parameters = [$passable, $stack];
+ }
+
+ $response = method_exists($pipe, $this->method)
+ ? $pipe->{$this->method}(...$parameters)
+ : $pipe(...$parameters);
+
+ return $response instanceof Responsable
+ ? $response->toResponse($this->getContainer()->make(Request::class))
+ : $response;
+ };
+ };
+ }
+
+ /**
+ * Parse full pipe string to get name and parameters.
+ *
+ * @param string $pipe
+ * @return array
+ */
+ protected function parsePipeString($pipe)
+ {
+ [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
+
+ if (is_string($parameters)) {
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
+0 of 0Closure($passable) {#652 …4} +
return $this->handleException($passable, new FatalThrowableError($e));
+ }
+ };
+ }
+
+ /**
+ * Get a Closure that represents a slice of the application onion.
+ *
+ * @return \Closure
+ */
+ protected function carry()
+ {
+ return function ($stack, $pipe) {
+ return function ($passable) use ($stack, $pipe) {
+ try {
+ $slice = parent::carry();
+
+ $callable = $slice($stack, $pipe);
+
+ return $callable($passable);
+ } catch (Exception $e) {
+ return $this->handleException($passable, $e);
+ } catch (Throwable $e) {
+ return $this->handleException($passable, new FatalThrowableError($e));
+ }
+ };
+ };
+ }
+
+ /**
+ * Handle the given exception.
+ *
+ * @param mixed $passable
+ * @param \Exception $e
+ * @return mixed
+ *
+ * @throws \Exception
+ */
+ protected function handleException($passable, Exception $e)
+ {
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
class ValidatePostSize
+{
+ /**
+ * Handle an incoming request.
+ *
+ * @param \Illuminate\Http\Request $request
+ * @param \Closure $next
+ * @return mixed
+ *
+ * @throws \Illuminate\Http\Exceptions\PostTooLargeException
+ */
+ public function handle($request, Closure $next)
+ {
+ $max = $this->getPostMaxSize();
+
+ if ($max > 0 && $request->server('CONTENT_LENGTH') > $max) {
+ throw new PostTooLargeException;
+ }
+
+ return $next($request);
+ }
+
+ /**
+ * Determine the server 'post_max_size' as bytes.
+ *
+ * @return int
+ */
+ protected function getPostMaxSize()
+ {
+ if (is_numeric($postMaxSize = ini_get('post_max_size'))) {
+ return (int) $postMaxSize;
+ }
+
+ $metric = strtoupper(substr($postMaxSize, -1));
+ $postMaxSize = (int) $postMaxSize;
+
+ switch ($metric) {
+ case 'K':
+ return $postMaxSize * 1024;
+ case 'M':
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
// the appropriate method and arguments, returning the results back out.
+ return $pipe($passable, $stack);
+ } elseif (! is_object($pipe)) {
+ [$name, $parameters] = $this->parsePipeString($pipe);
+
+ // If the pipe is a string we will parse the string and resolve the class out
+ // of the dependency injection container. We can then build a callable and
+ // execute the pipe function giving in the parameters that are required.
+ $pipe = $this->getContainer()->make($name);
+
+ $parameters = array_merge([$passable, $stack], $parameters);
+ } else {
+ // If the pipe is already an object we'll just make a callable and pass it to
+ // the pipe as-is. There is no need to do any extra parsing and formatting
+ // since the object we're given was already a fully instantiated object.
+ $parameters = [$passable, $stack];
+ }
+
+ $response = method_exists($pipe, $this->method)
+ ? $pipe->{$this->method}(...$parameters)
+ : $pipe(...$parameters);
+
+ return $response instanceof Responsable
+ ? $response->toResponse($this->getContainer()->make(Request::class))
+ : $response;
+ };
+ };
+ }
+
+ /**
+ * Parse full pipe string to get name and parameters.
+ *
+ * @param string $pipe
+ * @return array
+ */
+ protected function parsePipeString($pipe)
+ {
+ [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
+
+ if (is_string($parameters)) {
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
+0 of 0Closure($passable) {#653 …4} +
return $this->handleException($passable, new FatalThrowableError($e));
+ }
+ };
+ }
+
+ /**
+ * Get a Closure that represents a slice of the application onion.
+ *
+ * @return \Closure
+ */
+ protected function carry()
+ {
+ return function ($stack, $pipe) {
+ return function ($passable) use ($stack, $pipe) {
+ try {
+ $slice = parent::carry();
+
+ $callable = $slice($stack, $pipe);
+
+ return $callable($passable);
+ } catch (Exception $e) {
+ return $this->handleException($passable, $e);
+ } catch (Throwable $e) {
+ return $this->handleException($passable, new FatalThrowableError($e));
+ }
+ };
+ };
+ }
+
+ /**
+ * Handle the given exception.
+ *
+ * @param mixed $passable
+ * @param \Exception $e
+ * @return mixed
+ *
+ * @throws \Exception
+ */
+ protected function handleException($passable, Exception $e)
+ {
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
*
+ * @throws \Symfony\Component\HttpKernel\Exception\HttpException
+ */
+ public function handle($request, Closure $next)
+ {
+ if ($this->app->isDownForMaintenance()) {
+ $data = json_decode(file_get_contents($this->app->storagePath().'/framework/down'), true);
+
+ if (isset($data['allowed']) && IpUtils::checkIp($request->ip(), (array) $data['allowed'])) {
+ return $next($request);
+ }
+
+ if ($this->inExceptArray($request)) {
+ return $next($request);
+ }
+
+ throw new MaintenanceModeException($data['time'], $data['retry'], $data['message']);
+ }
+
+ return $next($request);
+ }
+
+ /**
+ * Determine if the request has a URI that should be accessible in maintenance mode.
+ *
+ * @param \Illuminate\Http\Request $request
+ * @return bool
+ */
+ protected function inExceptArray($request)
+ {
+ foreach ($this->except as $except) {
+ if ($except !== '/') {
+ $except = trim($except, '/');
+ }
+
+ if ($request->fullUrlIs($except) || $request->is($except)) {
+ return true;
+ }
+ }
+
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
// the appropriate method and arguments, returning the results back out.
+ return $pipe($passable, $stack);
+ } elseif (! is_object($pipe)) {
+ [$name, $parameters] = $this->parsePipeString($pipe);
+
+ // If the pipe is a string we will parse the string and resolve the class out
+ // of the dependency injection container. We can then build a callable and
+ // execute the pipe function giving in the parameters that are required.
+ $pipe = $this->getContainer()->make($name);
+
+ $parameters = array_merge([$passable, $stack], $parameters);
+ } else {
+ // If the pipe is already an object we'll just make a callable and pass it to
+ // the pipe as-is. There is no need to do any extra parsing and formatting
+ // since the object we're given was already a fully instantiated object.
+ $parameters = [$passable, $stack];
+ }
+
+ $response = method_exists($pipe, $this->method)
+ ? $pipe->{$this->method}(...$parameters)
+ : $pipe(...$parameters);
+
+ return $response instanceof Responsable
+ ? $response->toResponse($this->getContainer()->make(Request::class))
+ : $response;
+ };
+ };
+ }
+
+ /**
+ * Parse full pipe string to get name and parameters.
+ *
+ * @param string $pipe
+ * @return array
+ */
+ protected function parsePipeString($pipe)
+ {
+ [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
+
+ if (is_string($parameters)) {
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
+0 of 0Closure($passable) {#654 …4} +
return $this->handleException($passable, new FatalThrowableError($e));
+ }
+ };
+ }
+
+ /**
+ * Get a Closure that represents a slice of the application onion.
+ *
+ * @return \Closure
+ */
+ protected function carry()
+ {
+ return function ($stack, $pipe) {
+ return function ($passable) use ($stack, $pipe) {
+ try {
+ $slice = parent::carry();
+
+ $callable = $slice($stack, $pipe);
+
+ return $callable($passable);
+ } catch (Exception $e) {
+ return $this->handleException($passable, $e);
+ } catch (Throwable $e) {
+ return $this->handleException($passable, new FatalThrowableError($e));
+ }
+ };
+ };
+ }
+
+ /**
+ * Handle the given exception.
+ *
+ * @param mixed $passable
+ * @param \Exception $e
+ * @return mixed
+ *
+ * @throws \Exception
+ */
+ protected function handleException($passable, Exception $e)
+ {
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
{
+ $this->config = $config;
+ }
+
+ /**
+ * Handle an incoming request.
+ *
+ * @param \Illuminate\Http\Request $request
+ * @param \Closure $next
+ *
+ * @throws \Symfony\Component\HttpKernel\Exception\HttpException
+ *
+ * @return mixed
+ */
+ public function handle(Request $request, Closure $next)
+ {
+ $request::setTrustedProxies([], $this->getTrustedHeaderNames()); // Reset trusted proxies between requests
+ $this->setTrustedProxyIpAddresses($request);
+
+ return $next($request);
+ }
+
+ /**
+ * Sets the trusted proxies on the request to the value of trustedproxy.proxies
+ *
+ * @param \Illuminate\Http\Request $request
+ */
+ protected function setTrustedProxyIpAddresses(Request $request)
+ {
+ $trustedIps = $this->proxies ?: $this->config->get('trustedproxy.proxies');
+
+ // Trust any IP address that calls us
+ // `**` for backwards compatibility, but is deprecated
+ if ($trustedIps === '*' || $trustedIps === '**') {
+ return $this->setTrustedProxyIpAddressesToTheCallingIp($request);
+ }
+
+ // Support IPs addresses separated by comma
+ $trustedIps = is_string($trustedIps) ? array_map('trim', explode(',', $trustedIps)) : $trustedIps;
+
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
// the appropriate method and arguments, returning the results back out.
+ return $pipe($passable, $stack);
+ } elseif (! is_object($pipe)) {
+ [$name, $parameters] = $this->parsePipeString($pipe);
+
+ // If the pipe is a string we will parse the string and resolve the class out
+ // of the dependency injection container. We can then build a callable and
+ // execute the pipe function giving in the parameters that are required.
+ $pipe = $this->getContainer()->make($name);
+
+ $parameters = array_merge([$passable, $stack], $parameters);
+ } else {
+ // If the pipe is already an object we'll just make a callable and pass it to
+ // the pipe as-is. There is no need to do any extra parsing and formatting
+ // since the object we're given was already a fully instantiated object.
+ $parameters = [$passable, $stack];
+ }
+
+ $response = method_exists($pipe, $this->method)
+ ? $pipe->{$this->method}(...$parameters)
+ : $pipe(...$parameters);
+
+ return $response instanceof Responsable
+ ? $response->toResponse($this->getContainer()->make(Request::class))
+ : $response;
+ };
+ };
+ }
+
+ /**
+ * Parse full pipe string to get name and parameters.
+ *
+ * @param string $pipe
+ * @return array
+ */
+ protected function parsePipeString($pipe)
+ {
+ [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
+
+ if (is_string($parameters)) {
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
+0 of 0Closure($passable) {#655 …4} +
return $this->handleException($passable, new FatalThrowableError($e));
+ }
+ };
+ }
+
+ /**
+ * Get a Closure that represents a slice of the application onion.
+ *
+ * @return \Closure
+ */
+ protected function carry()
+ {
+ return function ($stack, $pipe) {
+ return function ($passable) use ($stack, $pipe) {
+ try {
+ $slice = parent::carry();
+
+ $callable = $slice($stack, $pipe);
+
+ return $callable($passable);
+ } catch (Exception $e) {
+ return $this->handleException($passable, $e);
+ } catch (Throwable $e) {
+ return $this->handleException($passable, new FatalThrowableError($e));
+ }
+ };
+ };
+ }
+
+ /**
+ * Handle the given exception.
+ *
+ * @param mixed $passable
+ * @param \Exception $e
+ * @return mixed
+ *
+ * @throws \Exception
+ */
+ protected function handleException($passable, Exception $e)
+ {
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
public function via($method)
+ {
+ $this->method = $method;
+
+ return $this;
+ }
+
+ /**
+ * Run the pipeline with a final destination callback.
+ *
+ * @param \Closure $destination
+ * @return mixed
+ */
+ public function then(Closure $destination)
+ {
+ $pipeline = array_reduce(
+ array_reverse($this->pipes), $this->carry(), $this->prepareDestination($destination)
+ );
+
+ return $pipeline($this->passable);
+ }
+
+ /**
+ * Run the pipeline and return the result.
+ *
+ * @return mixed
+ */
+ public function thenReturn()
+ {
+ return $this->then(function ($passable) {
+ return $passable;
+ });
+ }
+
+ /**
+ * Get the final piece of the Closure onion.
+ *
+ * @param \Closure $destination
+ * @return \Closure
+ */
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
}
+
+ /**
+ * Send the given request through the middleware / router.
+ *
+ * @param \Illuminate\Http\Request $request
+ * @return \Illuminate\Http\Response
+ */
+ protected function sendRequestThroughRouter($request)
+ {
+ $this->app->instance('request', $request);
+
+ Facade::clearResolvedInstance('request');
+
+ $this->bootstrap();
+
+ return (new Pipeline($this->app))
+ ->send($request)
+ ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
+ ->then($this->dispatchToRouter());
+ }
+
+ /**
+ * Bootstrap the application for HTTP requests.
+ *
+ * @return void
+ */
+ public function bootstrap()
+ {
+ if (! $this->app->hasBeenBootstrapped()) {
+ $this->app->bootstrapWith($this->bootstrappers());
+ }
+ }
+
+ /**
+ * Get the route dispatcher callback.
+ *
+ * @return \Closure
+ */
+ protected function dispatchToRouter()
+
+
+ +0 of 0Closure($request) {#47 …4} +
$router->middlewareGroup($key, $middleware);
+ }
+
+ foreach ($this->routeMiddleware as $key => $middleware) {
+ $router->aliasMiddleware($key, $middleware);
+ }
+ }
+
+ /**
+ * Handle an incoming HTTP request.
+ *
+ * @param \Illuminate\Http\Request $request
+ * @return \Illuminate\Http\Response
+ */
+ public function handle($request)
+ {
+ try {
+ $request->enableHttpMethodParameterOverride();
+
+ $response = $this->sendRequestThroughRouter($request);
+ } catch (Exception $e) {
+ $this->reportException($e);
+
+ $response = $this->renderException($request, $e);
+ } catch (Throwable $e) {
+ $this->reportException($e = new FatalThrowableError($e));
+
+ $response = $this->renderException($request, $e);
+ }
+
+ $this->app['events']->dispatch(
+ new Events\RequestHandled($request, $response)
+ );
+
+ return $response;
+ }
+
+ /**
+ * Send the given request through the middleware / router.
+ *
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
*/
+
+$app = require_once __DIR__.'/../bootstrap/app.php';
+
+/*
+|--------------------------------------------------------------------------
+| Run The Application
+|--------------------------------------------------------------------------
+|
+| Once we have the application, we can handle the incoming request
+| through the kernel, and send the associated response back to
+| the client's browser allowing them to enjoy the creative
+| and wonderful application we have prepared for them.
+|
+*/
+
+$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
+
+$response = $kernel->handle(
+ $request = Illuminate\Http\Request::capture()
+);
+
+$response->send();
+
+$kernel->terminate($request, $response);
+
+
+
+ +0 of 0Illuminate\Http\Request {#46 ▶ + #json: null + #convertedFiles: null + #userResolver: Closure($guard = null) {#673 …4} + #routeResolver: Closure() {#674 …4} + +attributes: Symfony\Component\HttpFoundation\ParameterBag {#48} + +request: Symfony\Component\HttpFoundation\ParameterBag {#54} + +query: Symfony\Component\HttpFoundation\ParameterBag {#54} + +server: Symfony\Component\HttpFoundation\ServerBag {#50} + +files: Symfony\Component\HttpFoundation\FileBag {#51} + +cookies: Symfony\Component\HttpFoundation\ParameterBag {#49} + +headers: Symfony\Component\HttpFoundation\HeaderBag {#52} + #content: null + #languages: null + #charsets: null + #encodings: null + #acceptableContentTypes: array:8 [▶ + 0 => "text/html" + 1 => "application/xhtml+xml" + 2 => "image/avif" + 3 => "image/webp" + 4 => "image/apng" + 5 => "application/xml" + 6 => "*/*" + 7 => "application/signed-exchange" + ] + #pathInfo: "/roblox-shop" + #requestUri: "/roblox-shop" + #baseUrl: "" + #basePath: null + #method: "GET" + #format: null + #session: Illuminate\Session\Store {#757} + #locale: null + #defaultLocale: "en" + -preferredFormat: null + -isHostValid: true + -isForwardedValid: true + : "" + : "html" +} +
Key | +Value | +
_gcl_au | +"*************************"
+
+ |
+
_ga_9MDBQQVKQJ | +"*************************************"
+
+ |
+
_fbp | +"*****************************"
+
+ |
+
_ga_0DNVQHLEYK | +"*************************************"
+
+ |
+
_ga | +"***************************"
+
+ |
+
_gid | +"***************************"
+
+ |
+
_gat_gtag_UA_233459238_1 | +"*"
+
+ |
+
_gat_gtag_UA_233785212_1 | +"*"
+
+ |
+
crisp-client%2Fsession%2F213e7ed4-b467-47ff-adae-5734879338c8 | +"********************************************"
+
+ |
+
XSRF-TOKEN | +"**************************************************************************************************************************************************************************************************************************************************** ◀"
+
+ |
+
shopminecraft_session | +"**************************************************************************************************************************************************************************************************************************************************** ◀"
+
+ |
+
Key | +Value | +
PATH | +"****************************"
+
+ |
+
HTTP_ACCEPT | +"***************************************************************************************************************************************"
+
+ |
+
HTTP_ACCEPT_ENCODING | +"***********************"
+
+ |
+
HTTP_ACCEPT_LANGUAGE | +"**"
+
+ |
+
HTTP_COOKIE | +"************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************* ◀"
+
+ |
+
HTTP_HOST | +"****************"
+
+ |
+
HTTP_USER_AGENT | +"*****************************************************************************************************************************"
+
+ |
+
HTTP_SEC_CH_UA | +"******************************************************************"
+
+ |
+
HTTP_SEC_CH_UA_MOBILE | +"**"
+
+ |
+
HTTP_SEC_CH_UA_PLATFORM | +"*********"
+
+ |
+
HTTP_UPGRADE_INSECURE_REQUESTS | +"*"
+
+ |
+
HTTP_DNT | +"*"
+
+ |
+
HTTP_SEC_FETCH_SITE | +"***********"
+
+ |
+
HTTP_SEC_FETCH_MODE | +"********"
+
+ |
+
HTTP_SEC_FETCH_USER | +"**"
+
+ |
+
HTTP_SEC_FETCH_DEST | +"********"
+
+ |
+
HTTP_PRIORITY | +"******"
+
+ |
+
HTTP_X_HTTPS | +"*"
+
+ |
+
DOCUMENT_ROOT | +"**************************"
+
+ |
+
REMOTE_ADDR | +"************"
+
+ |
+
REMOTE_PORT | +"*****"
+
+ |
+
SERVER_ADDR | +"**************"
+
+ |
+
SERVER_NAME | +"****************"
+
+ |
+
SERVER_ADMIN | +"**************************"
+
+ |
+
SERVER_PORT | +"***"
+
+ |
+
REQUEST_SCHEME | +"*****"
+
+ |
+
REQUEST_URI | +"************"
+
+ |
+
REDIRECT_URL | +"*******************"
+
+ |
+
REDIRECT_REQUEST_METHOD | +"***"
+
+ |
+
HTTPS | +"**"
+
+ |
+
REDIRECT_STATUS | +"***"
+
+ |
+
X_SPDY | +"*****"
+
+ |
+
SSL_PROTOCOL | +"*******"
+
+ |
+
SSL_CIPHER | +"**********************"
+
+ |
+
SSL_CIPHER_USEKEYSIZE | +"***"
+
+ |
+
SSL_CIPHER_ALGKEYSIZE | +"***"
+
+ |
+
SCRIPT_FILENAME | +"*******************************************"
+
+ |
+
QUERY_STRING | +"" ++ |
+
SCRIPT_URI | +"************************************"
+
+ |
+
SCRIPT_URL | +"************"
+
+ |
+
SCRIPT_NAME | +"*****************"
+
+ |
+
SERVER_PROTOCOL | +"********"
+
+ |
+
SERVER_SOFTWARE | +"*********"
+
+ |
+
REQUEST_METHOD | +"***"
+
+ |
+
X-LSCACHE | +"**"
+
+ |
+
PHP_SELF | +"*****************"
+
+ |
+
REQUEST_TIME_FLOAT | +"***"
+
+ |
+
REQUEST_TIME | +"***"
+
+ |
+
APP_NAME | +"*************"
+
+ |
+
APP_ENV | +"**********"
+
+ |
+
APP_KEY | +"***************************************************"
+
+ |
+
APP_DEBUG | +"****"
+
+ |
+
APP_URL | +"************************"
+
+ |
+
LOG_CHANNEL | +"*****"
+
+ |
+
DB_CONNECTION | +"*****"
+
+ |
+
DB_HOST | +"**************"
+
+ |
+
DB_PORT | +"****"
+
+ |
+
DB_DATABASE | +"***************"
+
+ |
+
DB_USERNAME | +"********"
+
+ |
+
DB_PASSWORD | +"**************"
+
+ |
+
BROADCAST_DRIVER | +"***"
+
+ |
+
CACHE_DRIVER | +"****"
+
+ |
+
QUEUE_CONNECTION | +"****"
+
+ |
+
SESSION_DRIVER | +"****"
+
+ |
+
SESSION_LIFETIME | +"***"
+
+ |
+
REDIS_HOST | +"*********"
+
+ |
+
REDIS_PASSWORD | +"****"
+
+ |
+
REDIS_PORT | +"****"
+
+ |
+
MAIL_DRIVER | +"****"
+
+ |
+
MAIL_HOST | +"****************"
+
+ |
+
MAIL_PORT | +"***"
+
+ |
+
MAIL_USERNAME | +"**********************"
+
+ |
+
MAIL_PASSWORD | +"**************************************************"
+
+ |
+
MAIL_ENCRYPTION | +"***"
+
+ |
+
AWS_ACCESS_KEY_ID | +"" ++ |
+
AWS_SECRET_ACCESS_KEY | +"" ++ |
+
AWS_DEFAULT_REGION | +"*********"
+
+ |
+
AWS_BUCKET | +"" ++ |
+
PUSHER_APP_ID | +"*******"
+
+ |
+
PUSHER_APP_KEY | +"********************"
+
+ |
+
PUSHER_APP_SECRET | +"********************"
+
+ |
+
PUSHER_APP_CLUSTER | +"***"
+
+ |
+
MIX_PUSHER_APP_KEY | +"********************"
+
+ |
+
MIX_PUSHER_APP_CLUSTER | +"***"
+
+ |
+
THESIEUTOC | +"********************"
+
+ |
+
RECAPTCHA_SITEKEY | +"****************************************"
+
+ |
+
RECAPTCHA_SECRET | +"****************************************"
+
+ |
+
Key | +Value | +
PATH | +"****************************"
+
+ |
+
APP_NAME | +"*************"
+
+ |
+
APP_ENV | +"**********"
+
+ |
+
APP_KEY | +"***************************************************"
+
+ |
+
APP_DEBUG | +"****"
+
+ |
+
APP_URL | +"************************"
+
+ |
+
LOG_CHANNEL | +"*****"
+
+ |
+
DB_CONNECTION | +"*****"
+
+ |
+
DB_HOST | +"**************"
+
+ |
+
DB_PORT | +"****"
+
+ |
+
DB_DATABASE | +"***************"
+
+ |
+
DB_USERNAME | +"********"
+
+ |
+
DB_PASSWORD | +"**************"
+
+ |
+
BROADCAST_DRIVER | +"***"
+
+ |
+
CACHE_DRIVER | +"****"
+
+ |
+
QUEUE_CONNECTION | +"****"
+
+ |
+
SESSION_DRIVER | +"****"
+
+ |
+
SESSION_LIFETIME | +"***"
+
+ |
+
REDIS_HOST | +"*********"
+
+ |
+
REDIS_PASSWORD | +"****"
+
+ |
+
REDIS_PORT | +"****"
+
+ |
+
MAIL_DRIVER | +"****"
+
+ |
+
MAIL_HOST | +"****************"
+
+ |
+
MAIL_PORT | +"***"
+
+ |
+
MAIL_USERNAME | +"**********************"
+
+ |
+
MAIL_PASSWORD | +"**************************************************"
+
+ |
+
MAIL_ENCRYPTION | +"***"
+
+ |
+
AWS_ACCESS_KEY_ID | +"" ++ |
+
AWS_SECRET_ACCESS_KEY | +"" ++ |
+
AWS_DEFAULT_REGION | +"*********"
+
+ |
+
AWS_BUCKET | +"" ++ |
+
PUSHER_APP_ID | +"*******"
+
+ |
+
PUSHER_APP_KEY | +"********************"
+
+ |
+
PUSHER_APP_SECRET | +"********************"
+
+ |
+
PUSHER_APP_CLUSTER | +"***"
+
+ |
+
MIX_PUSHER_APP_KEY | +"********************"
+
+ |
+
MIX_PUSHER_APP_CLUSTER | +"***"
+
+ |
+
THESIEUTOC | +"********************"
+
+ |
+
RECAPTCHA_SITEKEY | +"****************************************"
+
+ |
+
RECAPTCHA_SECRET | +"****************************************"
+
+ |
+
+ + \home\archive:root\\log-archive\misc\
+ + +file browser version alpha, rev. 1, oct. 2024
+
index
-
discord folder
+
discord folder
+
+
log-archive folder