Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel Code Generator

I come from CakePHP, recently started learning Laravel-4. It is very hard to see that such a great framework does not come with a code generator for basic CRUD operations. Is that a conscious decision or am I missing something ?

like image 713
Scalable Avatar asked Dec 09 '13 17:12

Scalable


2 Answers

Pretty certain it was a conscious decision. However, Jeffrey Way has created a killer Generator package for Laravel:

https://github.com/JeffreyWay/Laravel-4-Generators

like image 101
TunaMaxx Avatar answered Oct 04 '22 02:10

TunaMaxx


Laravel 5.1 comes with artisan make command to generate different code files, following is a list:

Available commands for the "make" namespace:
  make:command     Create a new command class
  make:console     Create a new Artisan command
  make:controller  Create a new resource controller class
  make:event       Create a new event class
  make:job         Create a new job class
  make:listener    Create a new event listener class
  make:middleware  Create a new middleware class
  make:migration   Create a new migration file
  make:model       Create a new Eloquent model class
  make:policy      Create a new policy class
  make:provider    Create a new service provider class
  make:request     Create a new form request class
  make:seeder      Create a new seeder class
  make:test        Create a new test class
like image 34
mshakeel Avatar answered Oct 04 '22 04:10

mshakeel