Laravel Tinker is a powerful REPL for the Laravel framework.
To get started with Laravel Tinker, simply run:
composer require laravel/tinker
From your console, execute the php artisan tinker
command.
The dispatch
helper function and dispatch
method on the Dispatchable
class depends on garbage collection to place the job on the queue. Therefore, when using tinker
, you should use Bus::dispatch
or Queue::push
to dispatch jobs.
Laravel Tinker is open-sourced software licensed under the MIT license.