Skip to content
Roberto Armas edited this page Aug 15, 2017 · 3 revisions

Create a Repository

Make:repository command

php artisan make:repository UserRepository --model=User

If you execute the command in the terminal. This will be create the Repository file in the repository folder located at app/repositories

Notice that automatically inject the model that is passed in the --model parameter.

Clone this wiki locally