question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tinker not working if the project root is not the laravel root

See original GitHub issue

Bug 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 image

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:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Roboroadscommented, Nov 25, 2020

@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.

0reactions
Roboroadscommented, Jun 17, 2021

@BazMaster excuse me it took so long, but you can now, in v2.2.0, set an execution root per-project. Hope this helps!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found