Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Artisan Tinker issue #33153

Closed
abstract-sha opened this issue Jun 8, 2020 · 5 comments
Closed

Artisan Tinker issue #33153

abstract-sha opened this issue Jun 8, 2020 · 5 comments

Comments

@abstract-sha
Copy link

  • Laravel Version: 7.12.0
  • PHP Version: 7.4.6
  • Database Driver & Version: 10.4.12-MariaDB

Description: Artisan Tinker does not run updated class methods

Requires exit from Artisan shell and re enter artisan shell to run the latest class method

Steps To Reproduce:

Enter artisan shell
Run class method
Modify class method
Run class method -> still produces old data

@CaddyDz
Copy link
Contributor

CaddyDz commented Jun 8, 2020

This is by design, artisan uses PHP Repl and loads the container once per session, there is nothing Laravel can do

@abstract-sha
Copy link
Author

thanks, that was really quick

appreciate the info

@CaddyDz
Copy link
Contributor

CaddyDz commented Jun 8, 2020

Here's a reference

@CaddyDz
Copy link
Contributor

CaddyDz commented Jun 8, 2020

There was this project to get the session reloaded from within tinker

@abstract-sha
Copy link
Author

I will keep it simple
Exit and re enter tinker shell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants