Roboroads / laravel-tinker

Adds a way to write php and run it directly in Laravels' Artisan Tinker.
Apache License 2.0
211 stars 15 forks source link

[Feature]: Tinker consoles per-project, option to put them in the .idea folder #330

Open pxlrbt opened 6 months ago

pxlrbt commented 6 months ago

Related problem

No response

My ideal solution

I see you moved the the Tinker Console to "Scratches and Consoles" with https://github.com/Roboroads/laravel-tinker/issues/39. Is there a reason why we need a separate "Console" and can't just run PHP scratch files?

Considered alternatives

No response

Additional context

No response

Intentions

Roboroads commented 4 months ago

I had tried to do that, I just needed a little bit more costimizability in the form of the tinker console scratch file type. I'm not happy with the implementation yet tho - I want the files to be "per project" and the way it's now it's not per project. So, I might ditch scratch files all together at some point.

laserhybiz commented 4 months ago

How about having a .tinker directory etc. inside each project and whatever php files are in this directory should be tinker executable?

This will also make it easier to have custom filenames.

Roboroads commented 4 months ago

An interesting idea, however, that would "dirty" your folder. Maybe add in to the idea folder. Or, even better, make it customizable.

laserhybiz commented 4 months ago

@Roboroads Why do you consider it "dirty", it should be added to .gitignore

laserhybiz commented 4 months ago

maybe even include a gitignore file by default when creating the directory

laserhybiz commented 4 months ago

I specifically do want to see it in the directory so I can see all saved snippets and select the file I want to tinker with.

Having it in the idea folder will make it again invisible.

stale[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. This means this issue is resolved or nobody else has had this issue or feature request. It will be closed if no further activity occurs within 30 days, so if this is still relevant, please let us know!

mybouhssina commented 1 week ago

+1, it would be great to be able to have a tinker console per project.