spatie / ray

Debug with Ray to fix problems faster
https://myray.app
MIT License
564 stars 102 forks source link

Rayable trait #738

Closed pascalbaljet closed 1 year ago

pascalbaljet commented 1 year ago

Instead of passing arguments to the ray() function, you may now add the Rayable trait to a class and call it fluently.

use Spatie\Ray\Support\Rayable;

class User
{
    use Rayable;
}

$user = new User;
$user->ray()->doSomething();
freekmurze commented 1 year ago

I thought this was a neat idea! Do you plan on continue polishing this, or is it ready for review?

pascalbaljet commented 1 year ago

Hey Freek, I'm sorry it took me this long to respond. The feature is ready, but I couldn't get the test to work with GitHub Actions. I think there's some metadata in the snapshot that differs.

freekmurze commented 1 year ago

Ok, I'll take care of this and finish the feature!

spatie-bot commented 1 year ago

Dear contributor,

because this pull request seems to be inactive for quite some time now, I've automatically closed it. If you feel this pull request deserves some attention from my human colleagues feel free to reopen it.