muath-ye / laravel-wallet
A wonderful wallet interface for managing your money.
Requires
- php: >=7.2
Requires (Dev)
- mockery/mockery: ^1.3.3
- orchestra/testbench-dusk: ^4|^5|^6
- phpunit/phpunit: ^8.5|^9.0
- squizlabs/php_codesniffer: ^3.5
This package is auto-updated.
Last update: 2024-12-27 14:20:01 UTC
README
This is a package to audit all http requests in your project.
Installation
Require this package with composer.
composer require muath-ye/audit
Laravel uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.
The Audit will be enabled automatically but you can stop it when change MUATHYE_AUDIT_ENABLED
is false
.
If you use a catch-all/fallback route, make sure you load the Muathye ServiceProvider before your own App ServiceProviders.
Laravel without auto-discovery
If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php
Muathye\Audit\ServiceProvider::class,
Copy the package config to your local config with the publish command:
php artisan vendor:publish --provider="Muathye\Audit\ServiceProvider"
Usage
update your .env
file as following:
MUATHYE_AUDIT_ENABLED=true
Enabling/Disabling on run time
You can enable or disable the audit during run time.
\Audit::enable(); \Audit::disable();
Note Audit::class
is registered as an aliese for Muathye\Audit\Support\Audit::class
Use can use helper functions :
enableAudit(); disableAudit();