#Class not found??

28 messages · Page 1 of 1 (latest)

pulsar copper
#

You haven’t imported it, though? The namespace for your Scoper is App\Scoping. You’re not importing this in your App\Models\Product class at all.

cerulean sphinx
#

its still giving it.

#

i even tried composer dump-autoload

#

didnt work out

pulsar copper
#

Well it’s a little difficult to help you when you’re sharing screenshots of code that isn’t your actual code.

cerulean sphinx
#

what, it is lol

#

here i pulled it, still the same error

pulsar copper
#

Show the error.

cerulean sphinx
pulsar copper
#

So what folder is your “Scoper” in?

#

cerulean sphinx
pulsar copper
#

Mate. I saw from your now-deleted screenshot that the “Scoping” folder was inside your Models folder 🙃

cerulean sphinx
#

yeah i did copy it there, to try it out

#

still gives the same error, i was tryin everythin

pulsar copper
#

You’re just dicking about. You’re moving folders. You now have a “Scoper” file with no extension. And then confused why the class can’t be found.

#

Basically I now don’t believe anything you say because you’re sending changed code and now changed screenshots.

cerulean sphinx
#

wym no extension?

cerulean sphinx
#

it showed the php logo on the file, forgot the extension xD

#

lmao

pulsar copper
cerulean sphinx
#

😂, really didnt notice, my bad g