定制 leuverink/eloquent-hashid-binding 二次开发

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

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

leuverink/eloquent-hashid-binding

Composer 安装命令:

composer require leuverink/eloquent-hashid-binding

包简介

A drop in solution for eloquent route model binding with hashid's

README 文档

README

Build Status Coverage Status Latest Stable Version Latest Unstable Version License

A drop in solution for eloquent implicit route model binding with hashid's.
Obfuscate your app's id's from prying eyes.


What this package does

This package obfuscates eloquent model's id's when used in url's. This is really usefull when you don't want to expose id's to the outside world.

The route keys are encoded/decoded on the fly. You can drop this in any Laravel project without the need for migrations.

EXAMPLE
Before domain.test/users/1
After domain.test/users/rvBVv

Installation

composer require leuverink/eloquent-hashid-binding

Basic usage

Simply use the HashidBinding trait in your eloquent model and you're good to go!

namespace App;

use Illuminate\Foundation\Auth\User as Authenticatable;
use Leuverink\HashidBinding\HashidBinding;

class User extends Authenticatable
{
    use HashidBinding;

    //
}

That's it! Check out the docs for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-07-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固