Excel Export - Must be an instance of LaravelEnso\Core\app\Models\User, instance of App\User given
simplyaakif opened this issue · 5 comments
This is a **bug **.
Prerequisites
- Are you running the latest version?
Laravel Version: v6.0.0
Tables Version: v2.2.10 - Are you reporting to the correct repository?
- Did you check the documentation?
No mention of error in the documentation - Did you perform a cursory search?
Description
Steps to Reproduce
Install Laravel,
Install Tables,
Setup Auth for Users,
Set up Tables system using the Table builder and so on.
Expected behavior
Excel File generated in exports folder. And mail recieved to download.
Actual behavior
Argument 1 passed to LaravelEnso\Tables\app\Jobs\ExcelExport::__construct() must be an instance of LaravelEnso\Core\app\Models\User, instance of App\User given, called in F:\Aakif Work\Websites\Managment\1 Ace Portal\vendor\laravel\framework\src\Illuminate\Foundation\Bus\Dispatchable.php on line 16"
trace: [{,…}, {,…}, {,…}, {,…},…]
0: {,…}
1: {,…}
2: {,…}
3: {,…}
4: {function: "__invoke", class: "App\Http\Controllers\QueryTableController", type: "->"}
5: {,…}
6: {,…}
7: {,…}
8: {,…}
9: {,…}
10: {,…}
11: {,…}
12: {,…}
13: {,…}
14: {,…}
15: {,…}
16: {,…}
17: {,…}
18: {,…}
19: {,…}
20: {,…}
21: {,…}
22: {,…}
23: {,…}
24: {,…}
25: {,…}
26: {,…}
27: {,…}
28: {file: "F:\Aakif Work\Websites\Managment\1 Ace Portal\vendor\fideloper\proxy\src\TrustProxies.php",…}
29: {,…}
30: {,…}
31: {,…}
32: {,…}
33: {,…}
34: {,…}
35: {,…}
36: {,…}
37: {,…}
38: {,…}
39: {,…}
40: {,…}
41: {file: "F:\Aakif Work\Websites\Managment\1 Ace Portal\public\index.php", line: 55, function: "handle",…}
42: {file: "F:\Aakif Work\Websites\Managment\1 Ace Portal\server.php", line: 21, function: "require_once"}
Also updating the reference of LaravelEnso\Core\app\Models\User with App\User removes the error but then occurs a new null kind of error.
You local user does not extend the one from core?
If possible kindly brief more or provide some resources to look into.
Incase if i forgot to mention, i am using it outside enso ecosystem.
Ah I see!