Skip to content

vbarbarosh/laravel-debug-eval

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A UI and backend for evaluating PHP remotely. For debugging purposes only.

cover

Installation

composer require vbarbarosh/laravel-debug-eval

Usage in Laravel

Route::any('/laravel-debug-eval', function () {
    // 1. Ensure that current user has access to this endpoint
    return vbarbarosh\laravel_debug_eval();
});

Executing long running task

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);
    },
]);

YouTube

ALT

Credits

About

A rudimentary UI and backend for evaluating PHP remotely. For debugging purposes only.

Resources

License

Stars

Watchers

Forks

Packages

No packages published