Tinker not working if the project root is not the laravel root
See original GitHub issueBug description
PHP Fatal error: Class 'App/Models/Link' not found in Psy Shell code on line 4
To Reproduce I have Laravel located not in the root folder of the site, but in a subfolder. In one PhpStorm project, I have several Laravel sites.
It would be good to specify a path or several paths to the Laravel root folder in the settings.
Now this plugin is useless for me, unfortunately.
Screenshots
Environment (please complete the following information):
- IDE & Version: PHPStorm 2020.2.3
- PHP Version: 7.3.16
- OS: Windows 10
- Laravel Tinker plugin version : 1.3.0
- Interpreter Type: Local
- Laravel Version: 8.15.0
- Tinker version: v2.5.0
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
PHP Artisan Tinker Cannot Write to Config Path - Stack Overflow
So then I tried sudo -i and got root@homestead but found that the contents of .config were different. This time it has .composer...
Read more >Database connection issue: Using root user but error getting ...
I have installed laravel 5.5 and i am using php artisan serve for runing within xampp. But issues is that database connection working...
Read more >Laravel Sail - Laravel - The PHP Framework For Web Artisans
This command will publish Sail's docker-compose.yml file to the root of your application: ... Artisan, and Node / NPM commands that do not...
Read more >How To Install and Set Up Laravel with Docker Compose on ...
Not using Ubuntu 22.04? ... This file is not included in revision control. ... Create a new docker-compose.yml file at the root of...
Read more >How to fix storage link not working issue in Laravel
Laravel Flysystem integration provides a simple driver for working with local file systems, SFTP, and Amazon S3. ... Then go to the project...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@BazMaster
For the original issue: Yes, I could see that as a problem. I’ll make a setting where you can specify the laravel root.
For issue 2 - I’ve been trying to do that bot for some reason it’s really hard to do. I could use some help with that from someone that has actual experience with Swing. I’ll create an issue for this one.
For issue 3 - the shortcut you use to open the tinker shell (default Ctrl+shift+T) also runs it if you have the shell open. Does that fulfill yout needs?
I find it extremely weird you can’t post multiple issues btw. I havn’t set up something like such a restriction.
@BazMaster excuse me it took so long, but you can now, in v2.2.0, set an execution root per-project. Hope this helps!