PHP code example of datomatic / laravel-enum-state-machine
1. Go to this page and download the library: Download datomatic/laravel-enum-state-machine library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
datomatic / laravel-enum-state-machine example snippets
return [
/*
|--------------------------------------------------------------------------
| Soft Mode Configuration
|--------------------------------------------------------------------------
|
| The 'soft_mode' configuration allows for handling errors without
| interrupting the application's execution. When this option is enabled,
| no exceptions are thrown during state transitions and logged instead.
| This helps prevent unexpected crashes, ensuring
| greater application resilience, especially in scenarios where a failure
| in the state machine should not disrupt the main program flow.
| You can configure this modality for each model casting
|
*/
'soft_mode' => env('LARAVEL_ENUM_STATE_MACHINE_SOFT_MODE', false),
];