Questions tagged [tinker]

Tinker is a REPL for the Laravel PHP framework.

136 questions
-2
votes
1 answer

Create dummy data with Tinker/Laravel

In Tinker, App\Models\Project::all(); returns a list of all projects. Now I would like to add additional dummy data with factory(App\Models\Project::class, 10)->create();, but nothing is happening. What am I doing wrong and how could I debug it?
Andreas
  • 687
  • 2
  • 9
  • 20
1 2 3
9
10