Answers for "Method 'where' not found in \App\Models\User"

-1

Method 'where' not found in \App\Models\User

Laravel 6+

use Illuminate\Database\Eloquent\Builder;

/**
 * @mixin Builder
 */
 
class Post extends Model {

########## ALTERNATIVE ################
run these commands

composer require --dev barryvdh/laravel-ide-helper 

php artisan ide-helper:models 
// select next option as no after this command
Posted by: Guest on May-09-2021

Code answers related to "Method 'where' not found in \App\Models\User"

Browse Popular Code Answers by Language