Open maxdevis opened 4 years ago
@maxdevis , thanks for opening a new issue.
Where exactly are you getting redirected? /odata.svc, or / ?
if in my browser i put: http://127.0.0.1:80/odata.svc/Users, laravel redirected to home page
br max
What do you get at http://127.0.0.1:80/odata.svc
?
honestly I have not tried to launch "http://127.0.0.1:80/odata.svc" tomorrow I try again and let you know.
br Max
hi, I launched the url in the browser and immediately afterwards a window appeared asking me if I wanted to save the file "odata.svc". After saving in the file it was written this:
`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
@maxdevis , can you grab #195 and see if that fixes your problem?
@maxdevis one thing I notice is that the model isn't in the list. Can you check that you have added the trait to the model and dumped an optimized autoload composer -o dump-autoload
Hello, I checked and in the model I put: "use\AlgoWeb\PODataLaravel\Models\ MetadataTrait;"
and in class: MetadataTrait;
now i have optimized composer
but the result not change :(
br Max
@CyberiaResurrection I may need your help with this one. @maxdevis appears to have covered all the basics clearly the Provider is booting but the model is not being loaded (as is evident by the service document)
Is it possible it could be a caching issue from before he optimized the sutoloader? If so how would he clear it?
Max. Is the User model in the App namespace?
@c-harris , the previous autoloader should have been flattened by the dump-autoload call. The namespace mismatch is about the only thing I can think of that's left.
@maxdevis , are you able to post a copy of your User model (the one you've been trying to access) ?
Also, can you try clearing your application's cache (in case some old cached metadata is getting in the way) with php artisan cache:clear
?
ok, I will try again to do what you told me and I will let you know.
Yours sincerely Max
G'day @maxdevis ,
I have finished moving and I am happy to help try and revolves your issue. please accept my apology for the delay.
@maxdevis Did you get past this one or are you still stuck?
Hello, I couldn't prove anything because I'm sick, I hope to try soon. However, you can close the ticket, and then I will reopen another one as soon as I feel better
br max
Il giorno lun 2 mar 2020 alle ore 00:54 c-harris notifications@github.com ha scritto:
@maxdevis https://github.com/maxdevis Did you get past this one or are you still stuck?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Algo-Web/POData-Laravel/issues/189?email_source=notifications&email_token=ADLU2PENWMSLVXLNJ2CW4O3RFLYRPA5CNFSM4KNUTY4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENNQEEA#issuecomment-593166864, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADLU2PDQOXTBU4BKKK7VV43RFLYRPANCNFSM4KNUTY4A .
-- Cordiali saluti
Massimo De Vitis
in my .env file i put:
APP_DISABLE_AUTH=true
my url is: http://127.0.0.1:80/odata.svc/Users
i just to call my model User br Max