承接 takeawaytown/laravel-uuid 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

takeawaytown/laravel-uuid

Composer 安装命令:

composer require takeawaytown/laravel-uuid

包简介

A package for using 'Universally Unique Identifiers' in Laravel.

README 文档

README

Build Status Maintainability Test Coverage

Laravel UUID

A package for working with UUID values in Laravel.

You can use the package to generate and validate version 1, 3, 4 and 5 UUID identifiers.

Installation

To install, simply type the following at your bash prompt:

composer require takeawaytown/laravel-uuid

The package automatically registers the Service Provider and Alias in Laravel 5.5 and above. If using Laravel <= 5.4, then you must manually add them.

For the Service Provider, add the following to your app config file:

TakeawayTown\LaravelUuid\Providers\UuidServiceProvider::class,

For the Alias, add the following to your app config:

'UUID' => TakeawayTown\LaravelUuid\Classes\Uuid::class,

Basic Usage

The most basic generator usage is:

Uuid::generate();

This will generate a UUID object, which will be 'Version 1' and will use a random MAC address.

You can also generate a UUID string using type-hinting or using a method. Either of the following is exactly the same:

(string) Uuid::generate();
Uuid::generate()->string;

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-11-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固