File "PerformsRedirects.php"

Full Path: /home/fundopuh/trader.fxex.org/vendor/livewire/livewire/src/ComponentConcerns/PerformsRedirects.php
File size: 824 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace Livewire\ComponentConcerns;

trait PerformsRedirects
{
    public $redirectTo;

    public function redirect($url)
    {
        $this->redirectTo = $url;

        $this->shouldSkipRender = $this->shouldSkipRender ?? ! config('livewire.render_on_redirect', false);
    }

    public function redirectRoute($name, $parameters = [], $absolute = true)
    {
        $this->redirectTo = route($name, $parameters, $absolute);

        $this->shouldSkipRender = $this->shouldSkipRender ?? ! config('livewire.render_on_redirect', false);
    }

    public function redirectAction($name, $parameters = [], $absolute = true)
    {
        $this->redirectTo = action($name, $parameters, $absolute);

        $this->shouldSkipRender = $this->shouldSkipRender ?? ! config('livewire.render_on_redirect', false);
    }
}