guys I wrote a small package long time ago that turns eloquent queries into plain english
github.com/sulimanbenhalim/laravel-prose, curious if anyone else has needed something like this
php
User::where('last_login_at', '<', now()->subYears(2)) ->whereNull('email_verified_at') ->describeDelete(); // → "Delete users with last login more than 2 years ago and with unverified email"
GitHubGitHub - sulimanbenhalim/laravel-prose: Transform Laravel Eloquent queries into natural language descriptions. Convert complex database queries into readable, human-friendly prose.Transform Laravel Eloquent queries into natural language descriptions. Convert complex database queries into readable, human-friendly prose. - sulimanbenhalim/laravel-prose
commit 8f9f979