/var/www/vhosts/teknolojio.com.tr/public_html/vendor/intervention/image/src/Intervention/Image/AbstractDecoder.php
return $this->initFromBinary($this->data);
case $this->isUrl():
return $this->initFromUrl($this->data);
case $this->isStream():
return $this->initFromStream($this->data);
case $this->isDataUrl():
return $this->initFromBinary($this->decodeDataUrl($this->data));
case $this->isFilePath():
return $this->initFromPath($this->data);
// isBase64 has to be after isFilePath to prevent false positives
case $this->isBase64():
return $this->initFromBinary(base64_decode($this->data));
default:
throw new NotReadableException("Image source not readable");
}
}
/**
* Decoder object transforms to string source data
*
* @return string
*/
public function __toString()
{
return (string) $this->data;
}
}
Arguments
"Image source not readable (View: /var/www/vhosts/teknolojio.com.tr/public_html/resources/views/blog/view.blade.php)"
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php
*
* @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();
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/intervention/image/src/Intervention/Image/AbstractDecoder.php
return $this->initFromBinary($this->data);
case $this->isUrl():
return $this->initFromUrl($this->data);
case $this->isStream():
return $this->initFromStream($this->data);
case $this->isDataUrl():
return $this->initFromBinary($this->decodeDataUrl($this->data));
case $this->isFilePath():
return $this->initFromPath($this->data);
// isBase64 has to be after isFilePath to prevent false positives
case $this->isBase64():
return $this->initFromBinary(base64_decode($this->data));
default:
throw new NotReadableException("Image source not readable");
}
}
/**
* Decoder object transforms to string source data
*
* @return string
*/
public function __toString()
{
return (string) $this->data;
}
}
Arguments
"Image source not readable"
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/intervention/image/src/Intervention/Image/AbstractDriver.php
/**
* Returns clone of given core
*
* @return mixed
*/
public function cloneCore($core)
{
return clone $core;
}
/**
* Initiates new image from given input
*
* @param mixed $data
* @return \Intervention\Image\Image
*/
public function init($data)
{
return $this->decoder->init($data);
}
/**
* Encodes given image
*
* @param Image $image
* @param string $format
* @param int $quality
* @return \Intervention\Image\Image
*/
public function encode($image, $format, $quality)
{
return $this->encoder->process($image, $format, $quality);
}
/**
* Executes named command on given image
*
* @param Image $image
* @param string $name
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/intervention/image/src/Intervention/Image/ImageManager.php
*
* @return self
*/
public function configure(array $config = [])
{
$this->config = array_replace($this->config, $config);
return $this;
}
/**
* Initiates an Image instance from different input types
*
* @param mixed $data
*
* @return \Intervention\Image\Image
*/
public function make($data)
{
return $this->createDriver()->init($data);
}
/**
* Creates an empty image canvas
*
* @param int $width
* @param int $height
* @param mixed $background
*
* @return \Intervention\Image\Image
*/
public function canvas($width, $height, $background = null)
{
return $this->createDriver()->newImage($width, $height, $background);
}
/**
* Create new cached image and run callback
* (requires additional package intervention/imagecache)
*
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/intervention/image/src/Intervention/Image/ImageManagerStatic.php
* @param array $config
*
* @return ImageManager
*/
public static function configure(array $config = [])
{
return self::$manager = self::getManager()->configure($config);
}
/**
* Statically initiates an Image instance from different input types
*
* @param mixed $data
*
* @return \Intervention\Image\Image
* @throws \Intervention\Image\Exception\NotReadableException
*/
public static function make($data)
{
return self::getManager()->make($data);
}
/**
* Statically creates an empty image canvas
*
* @param int $width
* @param int $height
* @param mixed $background
*
* @return \Intervention\Image\Image
*/
public static function canvas($width, $height, $background = null)
{
return self::getManager()->canvas($width, $height, $background);
}
/**
* Create new cached image and run callback statically
*
* @param Closure $callback
/var/www/vhosts/teknolojio.com.tr/public_html/app/Helpers/Helpers.php
if ($ext == 'png' || $ext == 'PNG' || $ext == 'gif' || $ext == 'GIF') {
$newExt = '.' . $ext;
$saveExt = $ext;
} else {
$newExt = '.' . siteSettings('image_ext');
$saveExt = siteSettings('image_ext');
}
} else {
if ($ext == 'gif' || $ext == 'GIF') {
$newExt = '.' . $ext;
$saveExt = $ext;
} else {
$newExt = '.' . siteSettings('image_ext');
$saveExt = siteSettings('image_ext');
}
}
if ($crop == true) {
if (!file_exists(public_path() . '/' . $image . '-' . $size1 . 'x' . $size2 . $newExt)) {
Image::make(public_path() . '/' . $image . '.' . $ext)
->fit($size1, $size2)
->save(public_path() . '/' . $image . '-' . $size1 . 'x' . $size2 . $newExt, $quality, $saveExt);
addFiles($image . '-' . $size1 . 'x' . $size2 . $newExt);
}
$image = $image . '-' . $size1 . 'x' . $size2 . $newExt;
} else {
if (!file_exists(public_path() . '/' . $image . $newExt)) {
Image::make(public_path() . '/' . $image . '.' . $ext)
->save(public_path() . '/' . $image . $newExt, $quality, $saveExt);
addFiles($image . $newExt);
}
$image = $image . $newExt;;
}
}
} elseif ($ext != 'webp' || $ext != 'WEB') {
if (!file_exists(public_path() . '/' . $image)) {
/var/www/vhosts/teknolojio.com.tr/public_html/storage/framework/views/f1da31ec832baa37a82757264d91b25c63a14302.php
<?php if($blog->meta->title == null): ?> <?php $__env->startSection('title'); ?><?php echo e($blog->title); ?> - <?php echo e($websiteName); ?><?php $__env->stopSection(); ?> <?php else: ?> <?php $__env->startSection('title'); ?><?php echo e(@$blog->meta->title); ?><?php $__env->stopSection(); ?> <?php endif; ?> <?php $__env->startSection('description'); ?><?php echo e(@$blog->meta->description); ?><?php $__env->stopSection(); ?> <?php $__env->startSection('keywords'); ?><?php echo e(@$blog->meta->keywords); ?><?php $__env->stopSection(); ?> <?php $__env->startSection('ogTitle'); ?><?php echo e(@$blog->title); ?><?php $__env->stopSection(); ?> <?php $__env->startSection('ogDescription'); ?><?php echo e(@$blog->meta->description); ?><?php $__env->stopSection(); ?> <?php if($blog->featured_visual != null): ?> <?php $__env->startSection('ogImage'); ?><?php echo e(route('home') . '/' . $blog->featured_visual); ?><?php $__env->stopSection(); ?> <?php elseif(siteSettings('site_social_image') != null): ?> <?php $__env->startSection('ogImage'); ?><?php echo e(route('home') . '/' . siteSettings('site_social_image')); ?><?php $__env->stopSection(); ?> <?php else: ?> <?php $__env->startSection('ogImage'); ?><?php echo e(image('images/no-image.jpg', false)); ?><?php $__env->stopSection(); ?> <?php endif; ?> <?php $__env->startSection('ogUrl'); ?><?php echo e(url($blog->url)); ?><?php $__env->stopSection(); ?> <?php $__env->startSection('twitterImageAlt'); ?><?php echo e($blog->title); ?><?php $__env->stopSection(); ?> <?php $__env->startSection('addHeaderJS'); ?><?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div id="blog" class="col-12"> <div class="row"> <div id="wrapper" class="container"> <div class="row"> <div id="content" <?php if($blog->meta->sidebar_active == 'on'): ?> class="col-xl-8 col-lg-8 col-md-12 col-sm-12 col-12" <?php else: ?> class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12" style="border-right: none; padding-right: 15px;" <?php endif; ?>> <?php if(siteSettings("between_top_and_content_ad_blog") != null): ?> <style> #between_top_and_content_ad_blog .adsbygoogle { display: inline-block !important; width: 100%; height: 90px; } @media (max-width: 375px) { #between_top_and_content_ad_blog .adsbygoogle { width: 320px; height: 100px !important; } } @media (max-width: 500px) { #between_top_and_content_ad_blog .adsbygoogle { width: 468px; height: 60px !important; } } @media (max-width: 800px) { #between_top_and_content_ad_blog .adsbygoogle { width: 728px; height: 90px !important; } } @media (max-width: 992px) { #between_top_and_content_ad_blog .adsbygoogle { width: 100%; height: 90px !important; } } </style> <div id="between_top_and_content_ad_blog"> <?php echo str_replace('data-full-width-responsive="true"', '', str_replace('data-ad-format="auto"', '', siteSettings("between_top_and_content_ad_blog"))); ?> </div> <?php endif; ?> <div id="post" class="post-<?php echo e($blog->id); ?>"> <?php if($blog->news_excerpt != null): ?> <div class="news-excerpt"> <?php echo e($blog->news_excerpt); ?> </div> <?php endif; ?> <?php if($blog->meta->featured_visual_active == 'on'): ?> <div id="featured-visual"> <div id="fv-category"> <?php $__currentLoopData = $blog->categories->toArray(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($category['id'] != null): ?> <a href="<?php echo e(url($category['slug'])); ?>" title="<?php echo e(__($category['name'])); ?>"><?php echo e(__($category['name'])); ?></a> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <time <?php if(siteSettings('content_dates') == 'off'): ?>style="display:none;"<?php endif; ?> id="fv-date" datetime="<?php echo e($blog->created_at); ?>"> <span id="day"><?php echo e(timeToReal($blog->created_at, 'date', 'day')); ?></span> <span id="month"><?php echo e(timeToReal($blog->created_at, 'date', 'month')); ?></span> <span id="year"><?php echo e(timeToReal($blog->created_at, 'date', 'year')); ?></span> </time> <div id="fv-post-info"> <?php if(siteSettings('content_read_counts') == 'on'): ?> <div id="fvpi-views"><i class="fad fa-eye"></i> <?php echo e($blog->meta->views); ?></div> <?php endif; ?> <div id="fvpi-comments"><i class="fad fa-comments"></i> <?php echo e(getCommentsCount($blog->id)); ?></div> </div> <?php if($blog->featured_visual != null): ?> <img src="<?php echo e(image($blog->featured_visual, true, 724, 394)); ?>" alt="<?php echo e($blog->title); ?>"> <?php else: ?> <img src="<?php echo e(image('images/no-image.jpg', true, 724, 394)); ?>" width="724" height="394" alt="<?php echo e($blog->title); ?>"> <?php endif; ?> </div> <?php endif; ?> <h1><?php echo e($blog->title); ?></h1> <?php if(siteSettings("sticky_and_floating_ad_blog") != null): ?> <div class="p-post"> <style> .p-post .pp-ad .adsbygoogle { display: inline-block !important; width: 160px; height: 600px; } @media (min-width: 992px) { .p-post .pp-ad .adsbygoogle { width: 160px; height: 600px; } } </style> <div class="pp-ad"> <?php echo str_replace('data-full-width-responsive="true"', '', str_replace('data-ad-format="auto"', '', siteSettings("sticky_and_floating_ad_blog"))); ?> </div> <div class="pp-content"> <?php if(siteSettings("fixed_at_first_ad_blog") != null): ?> <style> #fixed_at_first_ad_blog .adsbygoogle { display: inline-block !important; width: 336px; height: 280px; } @media (max-width: 375px) { #fixed_at_first_ad_blog .adsbygoogle { width: 300px; height: 250px; } } @media (min-width: 500px) { #fixed_at_first_ad_blog .adsbygoogle { width: 336px; height: 280px; } } @media (min-width: 800px) { #fixed_at_first_ad_blog .adsbygoogle { width: 336px; height: 280px; } } @media (min-width: 992px) { #fixed_at_first_ad_blog .adsbygoogle { width: 336px; height: 280px; } } </style> <div id="fixed_at_first_ad_blog"> <?php echo str_replace('data-full-width-responsive="true"', '', str_replace('data-ad-format="auto"', '', siteSettings("fixed_at_first_ad_blog"))); ?> </div> <?php endif; ?> <?php echo $blog->body; ?> <?php if(siteSettings("fixed_end_of_ad_blog") != null): ?> <style> #fixed_end_of_ad_blog .adsbygoogle { display: inline-block !important; width: 100%; height: 100px; } </style> <div id="fixed_end_of_ad_blog"> <?php echo str_replace('data-full-width-responsive="true"', '', str_replace('data-ad-format="auto"', '', siteSettings("fixed_end_of_ad_blog"))); ?> </div> <?php endif; ?> </div> </div> <?php else: ?> <?php if(siteSettings("fixed_at_first_ad_blog") != null): ?> <style> #fixed_at_first_ad_blog .adsbygoogle { display: inline-block !important; width: 336px; height: 280px; } @media (max-width: 500px) { #fixed_at_first_ad_blog .adsbygoogle { width: 100%; height: auto; } } @media (min-width: 500px) { #fixed_at_first_ad_blog .adsbygoogle { width: 100%; height: auto; } } @media (min-width: 800px) { #fixed_at_first_ad_blog .adsbygoogle { width: 336px; height: 280px; } } @media (min-width: 992px) { #fixed_at_first_ad_blog .adsbygoogle { width: 336px; height: 280px; } } </style> <div id="fixed_at_first_ad_blog"> <?php echo str_replace('data-full-width-responsive="true"', '', str_replace('data-ad-format="auto"', '', siteSettings("fixed_at_first_ad_blog"))); ?> </div> <?php endif; ?> <?php echo $blog->body; ?> <?php if(siteSettings("fixed_end_of_ad_blog") != null): ?> <style> #fixed_end_of_ad_blog .adsbygoogle { display: inline-block !important; width: 100%; height: 90px; } </style> <div id="fixed_end_of_ad_blog"> <?php echo str_replace('data-full-width-responsive="true"', '', str_replace('data-ad-format="auto"', '', siteSettings("fixed_end_of_ad_blog"))); ?> </div> <?php endif; ?> <?php endif; ?> </div> <?php if($blog->meta->share_post_active == 'on'): ?> <div id="share-post"> <a class="whatsapp" target="_blank" href="https://api.whatsapp.com/send?text=<?php echo e($blog->title); ?> - <?php echo e(url($blog->url)); ?>" title="WhatsApp"><i class="fab fa-whatsapp"></i></a> <a class="facebook" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=<?php echo e(url($blog->url)); ?>" title="Facebook"><i class="fab fa-facebook-f"></i></a> <a class="twitter" target="_blank" href="https://twitter.com/intent/tweet?text=<?php echo e($blog->title); ?>: <?php echo e(url($blog->url)); ?>" title="Twitter"><i class="fab fa-twitter"></i></a> <a class="linkedin" target="_blank" href="https://www.linkedin.com/shareArticle?mini=true&url=<?php echo e(url($blog->url)); ?>&title=<?php echo e($blog->title); ?>&summary=&source=" title="LinkedIn"><i class="fab fa-linkedin-in"></i></a> <a class="pinterest" target="_blank" href="https://pinterest.com/pin/create/button/?url=<?php echo e(url($blog->url)); ?>&media=<?php if($blog->featured_visual != null): ?> <?php echo e(url($blog->featured_visual)); ?> <?php endif; ?>&description=<?php echo e(@$blog->meta->description); ?>" title="Pinterest"><i class="fab fa-pinterest-p"></i></a> </div> <?php endif; ?> <?php if($blog->meta->author_active == 'on'): ?> <div id="author"> <h3 class="em-line"><?php echo e(__('Yazar Hakkında')); ?></h3> <div class="row"> <div class="col-12 d-flex align-items-center"> <div class="a-avatar"> <img src="<?php echo e(image($blog->author->avatar, true, 104, 104)); ?>" alt="<?php echo e($blog->author->name); ?> <?php echo e($blog->author->surname); ?>"> </div> <div class="a-name"> <?php if($blog->author->nickname != null): ?> <a href="<?php echo e(url('author/' . $blog->author->nickname)); ?>" title="<?php echo e($blog->author->name); ?> <?php echo e($blog->author->surname); ?>"><?php echo e($blog->author->name); ?> <?php echo e($blog->author->surname); ?></a> <?php else: ?> <?php echo e($blog->author->name); ?> <?php echo e($blog->author->surname); ?> <?php endif; ?> <?php if($blog->author->description != null): ?> <span class="description"><?php echo e($blog->author->description); ?></span> <?php endif; ?> <?php if($blog->author->nickname != null): ?> <a style="font-size: 12px; margin: 7px 0 0 0;" href="<?php echo e(url('author/' . $blog->author->nickname)); ?>" title="<?php echo e($blog->author->name); ?> <?php echo e($blog->author->surname); ?>">Yazara Ait Tüm Yazılar »</a> <?php endif; ?> </div> </div> </div> </div> <?php endif; ?> <?php if($blog->meta->similar_posts_active == 'on'): ?> <div id="similar-posts"> <h3 class="em-line"><?php echo e(__('Benzer Yazılar')); ?></h3> <?php if($similarPosts->count() > 0): ?> <div class="row"> <?php $__currentLoopData = $similarPosts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="col-xl-6 col-lg-6 col-md-6 col-ms-12 col-12 mb-3"> <a href="<?php echo e(url($post->url)); ?>" title="<?php echo e($post->title); ?>"> <div class="sp-featured-visual"> <?php if($post->featured_visual != null): ?> <img src="<?php echo e(image($post->featured_visual, true, 104, 104)); ?>" width="104" height="104" alt="<?php echo e($post->title); ?>"> <?php else: ?> <img src="<?php echo e(image('images/no-image.jpg', true, 104, 104)); ?>" width="104" height="104" alt="<?php echo e($post->title); ?>"> <?php endif; ?> </div> <div class="sp-title"> <?php echo e($post->title); ?> <span><?php echo e(timeToReal($post->created_at, 'date')); ?></span> </div> </a> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <?php else: ?> <p class="text-center"><?php echo e(__('Bu yazıya benzer içerik bulunamadı.')); ?></p> <?php endif; ?> </div> <?php endif; ?> <?php if($blog->meta->comments_active == 'on'): ?> <div id="blog-comments"> <?php if($comments->where('approved', 1)->exists()): ?> <div class="bc-comments"> <h3 class="em-line"><?php echo e(__('Yapılmış Yorumlar')); ?> (<?php echo e(\GCMS\Comment::where('post_id', $blog->id)->where('approved', 1)->count()); ?>)</h3> <?php $__currentLoopData = $comments->whereNull('comment_parent_id')->where('approved', 1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $comment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="bcc-content"> <div class="bccc-comment"> <div class="bcccc-avatar"> <img src="<?php echo e('https://www.gravatar.com/avatar/' . md5(strtolower(trim(@$comment->email))) . '?d=' . urlencode(asset('images/default-avatar.jpg')) . '&s=70'); ?>" alt=""> </div> <div class="bcccc-content"> <div class="bccccc-name"><?php if(@$comment->website != null): ?><a href="<?php echo e(url(@$comment->website)); ?>" title="<?php echo e(@$comment->name); ?>" target="_blank" rel="nofollow"><?php echo e(@$comment->name); ?></a><?php else: ?><?php echo e(@$comment->name); ?><?php endif; ?></div> <div class="bccccc-date"><?php echo e(timeToReal(@$comment->created_at, 'timestamp')); ?></div> <div class="bccccc-comment"> <?php if(@$comment->comment != null || @$comment->comment != ''): ?> <?php $__currentLoopData = preg_split('/\r\n|[\r\n]/', @$comment->comment); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($data != null || $data != ''): ?> <?php if(stripos($data, '<p>') !== false): ?> <?php echo $data; ?> <?php else: ?> <p><?php echo e($data); ?></p> <?php endif; ?> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </div> <div class="bccccc-reply"><a href="#" title="<?php echo e(__('Cevap Ver')); ?>"><?php echo e(__('Cevap Ver')); ?></a></div> </div> </div> <?php $__currentLoopData = \GCMS\Comment::where('comment_parent_id', $comment->id)->where('approved', 1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $childComment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="bccc-comment child-comment"> <div class="bcccc-avatar"> <img src="<?php echo e('https://www.gravatar.com/avatar/' . md5(strtolower(trim(@$childComment->email))) . '?d=' . urlencode(asset('images/default-avatar.jpg')) . '&s=70'); ?>" alt=""> </div> <div class="bcccc-content"> <div class="bccccc-name"><?php echo e(@$childComment->name); ?></div> <div class="bccccc-date"><?php echo e(timeToReal(@$childComment->created_at, 'timestamp')); ?></div> <div class="bccccc-comment"> <?php if(@$childComment->comment != null || @$childComment->comment != ''): ?> <?php $__currentLoopData = preg_split('/\r\n|[\r\n]/', @$childComment->comment); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($data != null || $data != ''): ?> <?php if(stripos($data, '<p>') !== false): ?> <?php echo $data; ?> <?php else: ?> <p><?php echo e($data); ?></p> <?php endif; ?> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </div> <div class="bccccc-reply"><a href="#" title="<?php echo e(__('Cevap Ver')); ?>"><?php echo e(__('Cevap Ver')); ?></a></div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <?php endif; ?> <h3 class="em-line"><?php echo e(__('Yorum Yap')); ?></h3> <form class="form-style-1 mb-0" name="comments" role="form" method="POST" action="<?php echo e(route('comment.add', ['id' => $blog->id])); ?>"> <?php echo csrf_field(); ?> <div class="row"> <div class="col pr-2"> <input type="text" name="name" placeholder="<?php echo e(__('Ad & Soyad')); ?>" value="<?php echo e(old('name')); ?>"> </div> <div class="col pl-2"> <input type="email" name="email" placeholder="<?php echo e(__('E-Posta')); ?>" value="<?php echo e(old('email')); ?>"> </div> <div class="w-100"></div> <div class="col mt-3"> <textarea name="comment" id="" rows="5" placeholder="<?php echo e(__('Mesajınız...')); ?>"><?php echo e(old('comment')); ?></textarea> </div> <div class="col-12 mt-3 d-flex justify-content-between align-items-center"> <?php
$question_number_1 = rand(1, 9);
$question_number_2 = rand(1, 9);
$security_question_answer = $question_number_1 + $question_number_2;
?> <input style="width: 100px; margin: 0;" type="text" name="security_question" placeholder="<?php echo e($question_number_1); ?> + <?php echo e($question_number_2); ?> = ?"> <input type="hidden" name="security_question_answer" value="<?php echo e($security_question_answer); ?>"> <button class="button b-solid round-5" type="submit" value="<?php echo e(__('Yorumu Gönder')); ?>"><?php echo e(__('Yorumu Gönder')); ?></button> </div> </div> </form> </div> <?php endif; ?> </div> <?php if($blog->meta->sidebar_active == 'on'): ?> <div id="sidebar" <?php if(url()->current() == url('/')): ?> style="margin-bottom: 30px !important;" <?php endif; ?> class="<?php echo e(siteSettings('category_and_archive_sidebar_style')); ?> col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12"> <?php if(siteSettings("over_the_side_ad_blog") != null): ?> <style> #over_the_side_ad_blog .adsbygoogle { display: inline-block !important; width: 100%; height: 600px; } </style> <div id="over_the_side_ad_blog"> <?php echo str_replace('data-full-width-responsive="true"', '', str_replace('data-ad-format="auto"', '', siteSettings("over_the_side_ad_blog"))); ?> </div> <?php endif; ?> <?php if(@$sidebar != null): ?> <?php $__currentLoopData = @$sidebar; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $widget): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php echo $__env->make('widgets/widget-'.$widget['widget_id'], $widget, \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php else: ?> <div class="widget"> <div class="w-title"><h5><?php echo e(__('Bulunamadı!')); ?></h5></div> <div class="w-content"> <p><?php echo e(__('Görüntülenecek bir bileşen bulunamadı.')); ?></p> </div> </div> <?php endif; ?> </div> <?php endif; ?> </div> <?php if(siteSettings("bottom_top_ad_blog") != null): ?> <style> #bottom_top_ad_blog .adsbygoogle { display: inline-block !important; width: 100%; height: 90px; } @media (max-width: 500px) { #bottom_top_ad_blog .adsbygoogle { width: 320px; height: 100px; } } @media (min-width: 500px) { #bottom_top_ad_blog .adsbygoogle { width: 468px; height: 60px; } } @media (min-width: 800px) { #bottom_top_ad_blog .adsbygoogle { width: 728px; height: 90px; } } @media (min-width: 992px) { #bottom_top_ad_blog .adsbygoogle { width: 100%; height: 90px; } } </style> <div id="bottom_top_ad_blog"> <?php echo str_replace('data-full-width-responsive="true"', '', str_replace('data-ad-format="auto"', '', siteSettings("bottom_top_ad_blog"))); ?> </div> <?php endif; ?> </div> </div> </div> <?php if($blog->meta->tags_active == 'on'): ?> <?php if($blog->meta->tags == null || $blog->meta->tags == '[]'): ?> <?php if($blog->meta->keywords != null): ?> <div id="page-tags" class="col-12"> <h3 class="em-line"><?php echo e(__('Sosyal Medyada En Çok Bu Hashtag\'lerle Arandık!')); ?></h3> <div class="pt-hastags"> <?php $__currentLoopData = str_replace(' ', '', explode(',', $blog->meta->keywords)); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tag): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <a href="https://www.instagram.com/<?php echo e(siteSettings('site_instagram_url')); ?>" title="<?php echo e($tag); ?>" target="_blank">#<?php echo e($tag); ?></a> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> <?php endif; ?> <?php else: ?> <div id="page-tags" class="col-12"> <h3 class="em-line"><?php echo e(__('Sosyal Medyada En Çok Bu Hashtag\'lerle Arandık!')); ?></h3> <div class="pt-hastags"> <?php $__currentLoopData = json_decode($blog->meta->tags, true); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tag): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <a href="<?php echo e($tag['link']); ?>" title="<?php echo e($tag['hastag']); ?>" target="<?php echo e($tag['target']); ?>">#<?php echo e($tag['hastag']); ?></a> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> <?php endif; ?> <?php endif; ?> <?php $__currentLoopData = $widgets; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $widget): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php
$ids = array();
$postIds = explode(',', $widget->post_ids);
foreach ($postIds as $id) {
array_push($ids, $id);
}
$widgetBody = json_decode($widget->body, true);
$wTitle = $blog->title;
?> <?php if(in_array($blog->id, $ids) !== false): ?> <?php echo $__env->make('widgets/widget-'.$widgetBody[0]['widget_id'], [$widget, $widgetBody, $wTitle], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('addFooterJS'); ?> <script type="text/javascript"> $(document).ready(function () { let adsensePostFirst = $('#adsense-post-first'); if (adsensePostFirst.length > 0) { adsensePostFirst.next().next().after(adsensePostFirst); } var links = $("#post a"); var url = "<?php echo e(url('/')); ?>"; var tables = $("#post table"); $.each(links, function() { var link = $(this); if ((link.attr("href").indexOf(url) === -1 && link.attr("href").indexOf("http") !== -1) && link.attr("href").indexOf("#") === -1) { var oldText = link.html(); link.html(oldText + '<i style="font-size: 14px; margin-left: 3px;" class="fad fa-external-link"></i>'); link.attr("target", "_blank"); } }); $.each(tables, function() { var table = $(this); if (table.attr("id") !== "right-and-left") { table.addClass("gcms-table"); } }); }); </script> <?php $__env->stopSection(); ?> <script type="application/ld+json"> { "@context": "https://schema.org", "@type": "BlogPosting", "mainEntityOfPage": { "@type": "WebPage", "@id": "https://google.com/article" }, "headline": "<?php echo e(@$blog->title); ?>", "image": "<?php if(@$blog->featured_visual != null): ?><?php echo e(url('/') . '/' . @$blog->featured_visual); ?><?php elseif(@siteSettings('site_social_image') != null): ?><?php echo e(url('/') . '/' . @siteSettings('site_social_image')); ?><?php else: ?><?php echo e(image('images/no-image.jpg', false)); ?><?php endif; ?>", "datePublished": "<?php echo e(@$blog->created_at); ?>", "dateModified": "<?php echo e(@$blog->updated_at); ?>", "author": { "@type": "Person", "name": "<?php if(@$blog->author->name == 'GCMS'): ?><?php echo e(siteSettings('site_name')); ?><?php else: ?><?php echo e(@$blog->author->name); ?><?php endif; ?>" }, "publisher": { "@type": "Organization", "name": "<?php echo e(@siteSettings('site_name')); ?>", "logo": { "@type": "ImageObject", "url": "<?php echo e(url('/') . '/' . @siteSettings('site_logo')); ?>" } } } </script>
<?php echo $__env->make('layouts.page', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/vhosts/teknolojio.com.tr/public_html/resources/views/blog/view.blade.php ENDPATH**/ ?>
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php
/**
* 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)
{
Arguments
"/var/www/vhosts/teknolojio.com.tr/public_html/storage/framework/views/f1da31ec832baa37a82757264d91b25c63a14302.php"
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php
* @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);
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/View/View.php
$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;
}
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/View/View.php
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());
}
/**
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/View/View.php
$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;
}
}
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Http/Response.php
* @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);
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/symfony/http-foundation/Response.php
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 = [])
{
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php
*/
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) {
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php
* 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 &&
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php
/**
* 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);
}
/**
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
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();
/var/www/vhosts/teknolojio.com.tr/public_html/app/Http/Middleware/Localization.php
<?php
namespace GCMS\Http\Middleware;
use Closure;
use GCMS;
class Localization {
public function handle($request, Closure $next) {
if (session()->has('locale')) {
app()->setLocale(session()->get('locale'));
}
return $next($request);
}
}
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// 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)) {
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
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)
{
/var/www/vhosts/teknolojio.com.tr/public_html/app/Http/Middleware/Language.php
<?php
namespace GCMS\Http\Middleware;
use Closure;
use Illuminate\Support\Facades\Session;
use Illuminate\Support\Facades\Lang;
class Language {
public function handle($request, Closure $next) {
if ($locale = Session::get('locale')) {
Lang::setLocale($locale);
}
return $next($request);
}
}
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// 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)) {
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
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)
{
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php
*/
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);
}
}
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// 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)) {
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
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)
{
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php
}
/**
* 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']);
}
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// 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)) {
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
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)
{
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php
* 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);
}
}
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// 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)) {
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
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)
{
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php
* @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)
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// 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)) {
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
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)
{
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php
* 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;
}
}
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// 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)) {
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
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)
{
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php
* 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);
}
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// 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)) {
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
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)
{
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
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
*/
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php
*
* @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.
*
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php
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)
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php
*
* @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.
*
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php
* @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)
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
* @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.
*
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
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();
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/fideloper/proxy/src/TrustProxies.php
{
$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;
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// 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)) {
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
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)
{
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php
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);
}
}
/**
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// 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)) {
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
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)
{
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php
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);
}
}
/**
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// 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)) {
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
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)
{
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php
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':
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// 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)) {
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
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)
{
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php
*
* @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;
}
}
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// 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)) {
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
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)
{
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
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
*/
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
}
/**
* 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()
/var/www/vhosts/teknolojio.com.tr/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
$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.
*
/var/www/vhosts/teknolojio.com.tr/public_html/public/index.php
*/
$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);