0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Laravel Horizon: tinkerでpending jobを取得してみる

Last updated at Posted at 2023-03-03
php artisan tinker  --execute "use Laravel\Horizon\Contracts\JobRepository;echo json_encode((app(JobRepository::class)->getPending()->all()),JSON_UNESCAPED_UNICODE|JSON_PRETTY_PRINT);"

出力にasideがでたり、引数に = が使えなかったりするけど何とか動作する。

外部にphpファイルを用意して読み込むと = も使える。

php artisan tinker  --execute "`cat tinker_testcmd.php`"
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?