Skip to Main Content
Hands-On Full Stack Web Development with Angular 6 and Laravel 5
book

Hands-On Full Stack Web Development with Angular 6 and Laravel 5

by Fernando Monteiro
July 2018
Intermediate to advanced content levelIntermediate to advanced
420 pages
8h 46m
English
Packt Publishing
Content preview from Hands-On Full Stack Web Development with Angular 6 and Laravel 5

Querying the database using Tinker

Tinker is a command-line application that allows you to interact with your Laravel application, including the Eloquent ORM, jobs, events, and more. To get access to the Tinker console, run the artisan tinker command that we previously used to check the database connection in Chapter 01, Understanding the Core Concepts of Laravel 5.

  1. Open your Terminal window and type the following command:

php artisan tinker

Since we have not created any controllers or routes for our application yet, it's impossible to check our data using the browser to access the API endpoints.

However, using Tinker, it is possible to interact with our database and check whether everything went well with our migration files and database ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Laravel: Up and Running

Laravel: Up and Running

Matt Stauffer
Building Large-Scale Web Applications with Angular

Building Large-Scale Web Applications with Angular

Chandermani Arora, Kevin Hennessy, Christoffer Noring, Doguhan Uluca

Publisher Resources

ISBN: 9781788833912Supplemental Content