2017 © Pedro Peláez
 

library gotourl

Go to an expecific url after some other redirections for Laravel

image

xorth/gotourl

Go to an expecific url after some other redirections for Laravel

  • Saturday, April 29, 2017
  • by xorth
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

GoToUrl for your laravel App

Latest Stable Version Latest Unstable Version License, (*1)

This composer package offers an easy redirector for your laravel 5.3 applications., (*2)

Installation

Begin by pulling in the package through Composer., (*3)

composer require xorth/gotourl

Next, include the service provider within your config/app.php file., (*4)

'providers' => [
    Xorth\GoToUrl\GoToUrlServiceProvider::class,
];

You can register the Go facade in the aliases key of your config/app.php file if you like., (*5)

'aliases' => [
    'Go' => \Go::class,
];

Usage

Within your controllers, before you perform a save, edit or delete action, make a call to the go() function to save where you want to go., (*6)

public function create()
{
    go()->after(); // Get the full url through $request->fullUrl()

    // do more stuff
}
public function save()
{
    // do something

    return go()->now();
}

You may also do:, (*7)

  • go('/something/to/show')
  • go()->after('/something/to/show')
  • Go::after('/something/to/show: Only if the facade was registered.
  • Go::now(): Only if the facade was registered.

This can be pretty useful if you save, update or delete something in different parts of your app., (*8)

The Versions

29/04 2017

dev-master

9999999-dev

Go to an expecific url after some other redirections for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jorge Cortes

laravel redirector

29/04 2017

0.1.1

0.1.1.0

Go to an expecific url after some other redirections for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jorge Cortes

laravel redirector

28/04 2017

0.1.0

0.1.0.0

Go to an expecific url after some other redirections for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jorge Cortes

laravel redirector