Skip to content

Jesús Amieiro

Information technologies. Per aspera ad astra

Tag: laravel 5

Laravel Factory. InvalidArgumentException with message ‘Unable to locate factory with name [default] [App\Model].’

If you are using the Laravel factories to populate the database with fake elements, when you add a new factory, v.gr. in the “\database\factories\ModelFactory.php”, ant try to execute it with the tinker app

Published 21/06/2016
Categorized as laravel Tagged error, factory, laravel, laravel 5, tinker

Laravel. Models into its own folder

If you create an Eloquent Model in Laravel (v.gr., the “Company” model), using the command $ php artisan make:model Company the file is stored in the “App” folder.

Published 17/06/2016
Categorized as laravel Tagged eloquent, laravel, laravel 5, model, php

Posts navigation

Newer posts Page 1 Page 2

Search

  • About me
  • Contact me
  • Talks
  • Running, trekking and other stuff
  • Cookies

Side projects

  • La semana PHP
  • Descargar máquinas virtuales
  • WP polyglots facilitator
  • Control the Work

Interesting links

  • Command Line Linux Tips and Tricks
  • Calendar of events, conferences, and meetups
Jesús Amieiro
Proudly powered by WordPress.