This is part of the series tinker like a boss (in psysh)

  1. tinker… what?
  2. includes
  3. casters (presenters)
  4. aliases
  5. http (and other) helpers
  6. wtf is this error?

Errors – WTF?

Usually getting verbose errors in tinker is now what you want. You made a typo, called wrong method etc – all feedback you need then is a short message and you can fix your error. Sometimes, however, you may want to actually see more information about the errors or full stacktrace behind it.

Fortunatelly PsySH got you covered! All you need in this case is… to ask WTF? Check this out:



If you didn’t check it yet, here is the psysh config file that I prepared for you.

Enjoy and share your thoughts in the comments below or on twitter @SOFTonSOFA

Now is the time to go to your console, type $ php artisan tinker and follow along

Laravel – tinker like a boss with PsySH from Jarek on Vimeo.

It's only fair to share...Tweet about this on TwitterShare on RedditPin on PinterestShare on FacebookShare on Google+

Related Post

20 Eloquent tricks – more Recently I stumbled upon interesting article by Povilas Korop on laravel-news 20 eloquent tips and tricks. First of all thanks for sharing your knowle...
A story about Laravel Resources Leo is a brilliant developer. He turns every idea into code in no time. He's prepared for any task thrown at him and dives into coding straight away, ...
How to add custom casters in Laravel tinker I made a series about psysh and Laravel's tinker - powerful REPL where you can play with your whole application. ICYMI check it out here: tinker li...
Too much M4g1c will kill you (or at least bite you... So, as you know, I'm a big fan of Laravel, in particular Eloquent is my favourite. The beauty and value of both is a lot of conventions and magic...