A UI and backend for evaluating PHP remotely. For debugging purposes only.
composer require vbarbarosh/laravel-debug-eval
Route::any('/laravel-debug-eval', function () {
// 1. Ensure that current user has access to this endpoint
return vbarbarosh\laravel_debug_eval();
});
longrun([
'init' => function () {
return Article::query()->pluck('articles.id'),
},
'done' => function () {
dump('done');
},
'run' => function ($items) {
$query = Article::query()->whereIn('id', $items);
Article::backup($query);
},
]);
- Right panel with a list of snippets was inspired by https://github.com/tinkerun/tinkerun