PHP code example of revolution / laravel-namespaced-helpers
1. Go to this page and download the library: Download revolution/laravel-namespaced-helpers 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/ */
revolution / laravel-namespaced-helpers example snippets
use function Revolution\Illuminate\Support\env;
return [
'name' => env('APP_NAME', 'Laravel'),
];
use function Revolution\Illuminate\Support\dispatch_now;
$bar = dispatch_now(new FooJob());
use Illuminate\Contracts\Queue\ShouldQueue;
use Revolution\Illuminate\Support\DispatchNow;
class FooJob implements ShouldQueue
{
use DispatchNow;
}
$bar = FooJob::dispatchNow();