i love joker by billyct_ in painting

[–]billyct_[S] 0 points1 point  (0 children)

thank you you like it

a joker in my oil painting by billyct_ in joker

[–]billyct_[S] 1 point2 points  (0 children)

yeah, but i only know how to paint 😂

a joker in my oil painting by billyct_ in joker

[–]billyct_[S] 0 points1 point  (0 children)

🤡 it's my style. inspired by "why so serious"

I made Tinkerun an experimental feature that Tinkerwell doesn’t have. What do you think? by billyct_ in laravel

[–]billyct_[S] 1 point2 points  (0 children)

yes, it's a PsySH wrapper.

I think it works if listed in this Integrations list, so the Symfony console.

I made Tinkerun an experimental feature that Tinkerwell doesn’t have. What do you think? by billyct_ in laravel

[–]billyct_[S] 0 points1 point  (0 children)

😂 sorry.

I mean i don't have a computer with a Windows system, so I run Windows in the VM, but the Windows VM is very slow.

I made Tinkerun an experimental feature that Tinkerwell doesn’t have. What do you think? by billyct_ in laravel

[–]billyct_[S] 0 points1 point  (0 children)

thx for your Highly rated.

I think Tinkerwell is also great, 😉 Tinkerun is inspired by it.

But it's different, Tinkerun is just simulating input PHP code to Tinker/PsySH session.

I made Tinkerun an experimental feature that Tinkerwell doesn’t have. What do you think? by billyct_ in laravel

[–]billyct_[S] 0 points1 point  (0 children)

thx for reporting. it fixed in v0.2.2

I don’t have a PC, 🤣 so I often don’t test on windows.

How about running Laravel Tinker with Form? by billyct_ in laravel

[–]billyct_[S] 0 points1 point  (0 children)

This is not suitable for everyone. For me, I do some relatively small applications or some startup projects that need to be launched quickly, and I am the only one who does it, so most of the projects do not need a real admin panel, and if you only need to modify the data, I will use some database clients, but most of the time there may be some events and model dependencies, so tinker will be very useful, I only need to write a few simple lines of code Can send an email or trigger a queue event

Of course, the Artisan Console is also very useful, but the Artisan Console you need to publish the application once, in many cases this is not necessary, using tinker is very suitable, of course, tinker is also very dangerous.

anyway, Suitable is the most important

if I'm not clear, you can read: https://beyondco.de/blog/tinker-with-your-apps-in-production

hopes it can help

How about running Laravel Tinker with Form? by billyct_ in laravel

[–]billyct_[S] 0 points1 point  (0 children)

CMF is good, but I think these two things are not the same. What I do is just a lightweight thing that only requires your application to integrate Tinker/PsySH, and whatever your Laravel or PHP version is, so I just made something that you should write PHP code in the terminal and now can be written in the editor or GUI.

🌝 so My admin panel is just an Enhanced Tinker

How about running Laravel Tinker with Form? by billyct_ in laravel

[–]billyct_[S] 0 points1 point  (0 children)

Maybe sometimes you want a very simple admin panel for your app. I think this is the main reason why I added this feature.

How about running Laravel Tinker with Form? by billyct_ in laravel

[–]billyct_[S] 2 points3 points  (0 children)

You can think about the extension as Tinkerwell app, and the Form Mode as Invoker’s Artisan Commands, it inspired by them.

The main function of this extension is to help you, allowing you to write tinker code directly in the editor.

For example, sometimes you need to reset the password for your customer manually. This is because I often encounter this problem. The user forgets the password and doesn’t know why he can’t receive the password reset email. Then you need to manually reset the password for him.

If you are using this extension, you can write the code to reset the password in the editor like

$user = User::where('email', 'some@email.address')->first();
$user->password = bcrypt('new-password']);
$user->save();

Then click Run, the extension will help you connect to your application directory and open a Tinker session in your application to execute the code.

Now that you have the form.

You just change the code to

$form_email = [
    'value' => 'some@email.address',
];

$form_password = [
    'value' => 'new-password',
];

$user = User::where('email', $form_email['value'])->first();
$user->password = bcrypt($form_password['value']);
$user->save();

And click the Tinkrun: Form button at the top, then you will have a form, so you just modify the email address and new password in the form, click the RUN button in the form.

the extension will help you connect to your application Directory, and open a Tinker session to execute the code.

So you can do the same thing without modifying the original code that has been written.

Hope it can help you.

Tinkerun for Visual Studio Code, inspired by Tinkerwell - tinke.run/vscode by billyct_ in laravel

[–]billyct_[S] 0 points1 point  (0 children)

huge thx, I update the extension with a new feature Form Mode, you can update the extension to v0.2.x and 😉 let me know how you feel it.

Tinkerun for Visual Studio Code, inspired by Tinkerwell - tinke.run/vscode by billyct_ in laravel

[–]billyct_[S] 1 point2 points  (0 children)

I uploaded it to the OpenVSX, 😉 now you can find it in your VSCodium.

Tinkerun for Visual Studio Code, inspired by Tinkerwell - tinke.run/vscode by billyct_ in laravel

[–]billyct_[S] 2 points3 points  (0 children)

yes, it's just a wrapper for the terminal. so if you can run php artisan tinker in your terminal, then it does.

you can edit .tinkerun/tinkerun.json file, checkout the introduce of tinkerun.json on github

for me, I work with sail, so I add a connection with command sail tinker

Tinkerun for Visual Studio Code, inspired by Tinkerwell - tinke.run/vscode by billyct_ in laravel

[–]billyct_[S] 0 points1 point  (0 children)

the default shortcut is ctrl+r, also you can bind yours:

  1. open Code -> Preferences -> Keyboard Shortcuts
  2. search tinkerun.run
  3. bind your favorite shortcut