© Sanjib Sinha 2019
S. SinhaBeginning Laravel https://doi.org/10.1007/978-1-4842-4991-8_7

7. Using Tinker

Sanjib Sinha1 
(1)
Howrah, West Bengal, India
 

Since Laravel depends heavily on command-line interfaces, you will need to know a number of helpful commands to assist you while you build your applications.

Let’s first try to understand what a command-line interface is. Basically, it is a type of interactive shell that takes in single-user inputs, evaluates them, and returns the result to the user, in the form of a read-eval-print-loop (REPL) mechanism. Therefore, you can say that Tinker is a kind of REPL.

Actually, PHP has its own interactive shell, called PsySH; Justin Hileman created it, and Tinker is powered by PsySH.

Tinker helps you when you want ...

Get Beginning Laravel: Build Websites with Laravel 5.8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.