1. Go to this page and download the library: Download nunomaduro/essentials 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/ */
nunomaduro / essentials example snippets
declare(strict_types=1);
namespace App\Actions;
final readonly class CreateUserAction
{
/**
* Execute the action.
*/
public function handle(): void
{
DB::transaction(function (): void {
//
});
}
}