Archivi tag: Laravel Eloquent Tinker

Laravel Tinker query expression without quotes

Laravel put some quotes in your where you need to use DB::raw

Alternatively you can use whereRaw.

As you can see this is a command in Tinker but you can use in your php code same version.