mdayo/wallet

There is no license information available for the latest version (v1.0.0) of this package.

wallet package

Installs: 18

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/mdayo/wallet

v1.0.0 2025-12-03 04:40 UTC

This package is auto-updated.

Last update: 2025-12-03 04:41:02 UTC


README

A Laravel package to manage wallets, including configurations, migrations, and routes. The package works out-of-the-box but allows customization via publishing.

1. Installation

Install the package via Composer:

composer require mdayo/wallet

If your Laravel version does not support auto-discovery, add the service provider to config/app.php:

'providers' => [
    Mdayo\Wallet\WalletServiceProvider::class,
]

2. Configuration

The package provides default configuration files. You can publish them to customize:

php artisan vendor:publish --tag=wallet-config
php artisan vendor:publish --tag=wallet-queue-config

After publishing, edit:

  • config/wallet.php
  • config/queue.php

Default values are still available even if you don’t publish, thanks to mergeConfigFrom().

3. Migrations

The package comes with default migrations.

Run directly from the package:

php artisan migrate

Or publish migrations to customize:

php artisan vendor:publish --tag=wallet-migrations
php artisan migrate

Ensure published migrations have unique timestamps to avoid duplicates.

4. Routes

Default API routes are automatically loaded from the package:

$this->loadRoutesFrom(__DIR__.'/../routes/wallet.php');

5. Publish Routes for Customization

To override package routes, publish them:

php artisan vendor:publish --tag=wallet-routes

The published file will be available at:

routes/wallet.php Edit this file to customize routes. You can also configure the package to load the published routes if they exist.