screwtape_mk
1 week ago
127
5
Laravel

my laravel 7 application references a table from another application

Posted 1 week ago by screwtape_mk

I have an application deployed on a shared hosting server. I have a sign up form that fails and has the error: myapp_whm.appscheduler_users doesn't exist

My .env file:

APP_ENV=development
APP_KEY=base64:8/********************=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://myapp.com

DB_HOST=http://myapp.com
DB_DATABASE=myapp_whm
DB_USERNAME=**********
DB_PASSWORD=**********

CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

The authcontroller uses the following:

<?php

namespace App\Http\Controllers;

use Auth;
use App\Models\User;

use Illuminate\Http\Request;
use Session;
...

and the User Model:

<?php namespace App\Models;

use Illuminate\Auth\Authenticatable;
use Illuminate\Database\Eloquent\Model;

use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;


class User extends Model implements AuthenticatableContract
{

	use Authenticatable;

	
	protected $table = 'users';

	
	protected $fillable = [

...

Please sign in or create an account to participate in this conversation.