定制 xorth/gotourl 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

xorth/gotourl

Composer 安装命令:

composer require xorth/gotourl

包简介

Save a URL to redirect the user later

README 文档

README

Latest Stable Version Latest Unstable Version License

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.

统计信息

  • 总下载量: 17
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-04-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固