xorth/gotourl
| Install | |
|---|---|
composer require xorth/gotourl |
|
| Latest Version: | 0.1.1 |
| PHP: | ^8.1 |
| Laravel: | 5 |
| License: | MIT |
| Last Updated: | May 30, 2022 |
| Links: | GitHub · Packagist |
GoToUrl for your laravel App
This composer package offers an easy redirector for your laravel 5.3 applications.
Installation
Begin by pulling in the package through Composer.
composer require xorth/gotourl
Next, include the service provider within your config/app.php file.
'providers' => [
Xorth\GoToUrl\GoToUrlServiceProvider::class,
];
You can register the Go facade in the aliases key of your config/app.php file if you like.
'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.
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:
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.
Related Packages
This package provides an Database Redirector and Simple Admin Backend for: https...
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Version History
| Version | Released | Laravel | License |
|---|---|---|---|
| 0.1.1 | ^5.3 | MIT | |
| 0.1.0 | ^5.3 | MIT |