lundi 8 juillet 2019

Laravel Eloquent HasMany works on localhost (macos) but not Ubuntu server

So on my macbook running Mojave, using MAMP installed via homebrew, php7.1.23, serving using php artisan serve, my code below runs fine:

    public function integrations(){
      return $this->hasMany('App\Integration');
    }

This is in the User model. When I'm testing on a small Ubuntu 18.04.2 server with nginx, php-fpm 7.2.19 with the same database the code returns 0. Any ideas?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire