Sebastian Sulinski
Sebastian Sulinski

Reputation: 6055

PhpStorm namespace to Laravel's app directory

I seem to be having an issue with PhpStorm and Laravel, where for some strange reason, every time that I manually create a new class file it uses the app for the beginning of the namespace - even though I've set the app name with artisan. When generating files via artisan - namespace is correct - it's just when I create files manually from within the PhpStorm.

I'm sure it's an easy fix - I just don't quite know where in the settings is the option to update it.

Upvotes: 1

Views: 848

Answers (1)

funivan
funivan

Reputation: 3433

Right click on directory -> Mark directory As -> Sources Root

Upvotes: 2

Related Questions