namespace App\Http\Controllers;
use App\Models\Employee;
class HomeController extends Controller
{
public function index(){
$employees = Employee::all();
dd($employees);
}
}
Models
<?php
namespace App\Models;
use Yajra\Oci8\Eloquent\OracleEloquent as Eloquent;
class Employee extends Eloquent {
protected $connection = 'oracle';
protected $table = 'employees';
// define binary/blob fields
// protected $binaries = ['content'];
// define the sequence name used for incrementing
// default value would be {table}_{primaryKey}_seq if not set
// protected $sequence = null;
}
I tried this directly and it works without the package
Summary of problem or feature request
I am running Laravel 6 I'm getting the error below:
My controller:
Models
I tried this directly and it works without the package
Please assist