PATH:
home
/
rwabteecom
/
public_html
/
vendor
/
tightenco
/
ziggy
/
src
/
Output
/
Editing: File.php
<?php namespace Tightenco\Ziggy\Output; use Stringable; use Tightenco\Ziggy\Ziggy; class File implements Stringable { protected $ziggy; public function __construct(Ziggy $ziggy) { $this->ziggy = $ziggy; } public function __toString(): string { return <<<JAVASCRIPT const Ziggy = {$this->ziggy->toJson()}; if (typeof window !== 'undefined' && typeof window.Ziggy !== 'undefined') { Object.assign(Ziggy.routes, window.Ziggy.routes); } export { Ziggy }; JAVASCRIPT; } }
SAVE
CANCEL