Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

sujancse's avatar

Trait 'Illuminate\Foundation\Auth\Access\AuthorizesRequests' not found

I am seeing "Trait 'Illuminate\Foundation\Auth\Access\AuthorizesRequests' not found" for godaddy shared hosting but working properly on localhost. Godaddy is not supporting composer update. How can i solve this?

0 likes
3 replies
midascodebreaker's avatar

do not exclude in the .gitignore file the vendor folder... you need to upload the whole vendor folder to fix that issue

sujancse's avatar

Sorry I couldn't get it. Can you please elaborate?

spekkionu's avatar
Level 48

If you do not have shell access to the server to run composer commands you will need to run them locally then upload the entire vendor folder manually. Composer updates the autoloader classes whenever packages are added/removed/updated so you'll need to make sure you upload them and not just the changes package folders.

Most shared hosts will give you some sort of jailed or limited shell access if you ask for it. Sometimes it there will be a small fee for them to enable it but that would let you run composer or artisan commands which would save a huge amount of time.

If your hosting provider doesn't do this I suggest dumping them for one that does.

Please or to participate in this conversation.