added "use Illuminate\Database\Eloquent\ModelNotFoundException;" to global.php