thefourthdev/laravel-dice
最新稳定版本:v0.4.0
Composer 安装命令:
composer require thefourthdev/laravel-dice
包简介
Roll the dice!
README 文档
README
Roll the dice!
Installation
You can install the package via composer:
composer require thefourthdev/laravel-dice
You can publish and run the migrations with:
php artisan vendor:publish --tag="dice-migrations"
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --tag="dice-config"
This is the contents of the published config file:
return [
'route' => '/dice/api',
];
Optionally, you can publish the views using
php artisan vendor:publish --tag="dice-views"
Usage
use TheFourthDev\LaravelDice\Facades\LaravelDice;
$value = LaravelDice::d6(); // e.g. 5
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 40
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-04-16