Skip to content

code-generators/laravel-code-generators

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Laravel 5.5 code generator from database tables

About

The laravel-code-generators package allows you to create Models, Controllers, API Routes, Tests and Policies from existing database table structure.

It will fasten initial application setup, so you can advance straight to application logic.

Installation

Require the evolvo/laravel-code-generators package in your composer.json and update your dependencies:

$ composer require evolvo/laravel-code-generators

add

Evolvo\LaravelCodeGenerators\LaravelCodeGeneratorsServiceProvider::class

to config/app.php 'providers' array

Usage

  1. Create your migrations and run them using php artisan migrate.
  2. Run php artisan scaffold table_name to generate code for all existing table_name table
  3. Option --no-t will not generate tests.
  4. Option --no-ts will not generate tests responses
  5. Run php artisan generate:test table_name to generate CRUD tests.
  6. Run php artisan generate:single-test path/test_name to generate single test method
  7. Run php artisan generate:test-response path/test_name to generate CRUD test responses

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 65.2%
  • Smarty 9.7%
  • Vue 9.4%
  • TypeScript 7.3%
  • JavaScript 6.1%
  • HTML 2.3%