felixdorn/laravel-rickroll 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

felixdorn/laravel-rickroll

Composer 安装命令:

composer require felixdorn/laravel-rickroll

包简介

Rickrolls people trying to break your site.

README 文档

README

Rick Astley in Never Gonna Give You UP

RickRoll for Laravel

Tests Formats

Rickrolls people trying to break your site. This package is inspired by Liam Hammett's tweet.

Getting started

You can install the package via composer, if you don't have composer installed, you can download it here:

composer require felixdorn/laravel-rickroll

Or by adding a requirement in your composer.json :

{
    "require": {
        "felixdorn/laravel-rickroll": "dev-master"
    }
}

We need your knowledge!

Do you know any well-known url that "hackers" use to gather information/secrets ? Add these here, thanks!

Usage

On your routes/web.php just add this single line, and we'll handle the rest for you!

use Felix\Rickroll\Facades\RickRoll;

RickRoll::routes();

Redirecting to a custom URL

use Felix\Rickroll\Facades\RickRoll;

RickRoll::routes()->redirectsTo('https://mycustom.url');

Remove all URLs

use Felix\Rickroll\Facades\RickRoll;

RickRoll::routes()->clear();

Adding a URL

use Felix\Rickroll\Facades\RickRoll;

RickRoll::routes()->push('/rickroll')
    ->push('/rickroll/{id}', [
        'id' => '[0-9]+'
    ]);

Helper

There is a rickroll function available if you want to rickroll someone in one of your controllers.

rickroll('https://my-custom.url');

You don't need to return anything, it works just like an abort.

Events

We're dispatching an event with the current request when someone is rick-rolled. Just listen for Felix\RickRoll\Events\RickRolled in your EventServiceProvider .

Testing

composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email hi@felixdorn.fr instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 86
  • Watchers: 3
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-05-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固