thefourthdev/laravel-dice

v0.4.0 2025-04-30 15:47 UTC

This package is not auto-updated.

Last update: 2025-06-11 16:25:47 UTC


README

Latest Version on Packagist Total Downloads

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.