Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Laravel
  3. Laravel 5 Extended Generators

Laravel 5 Extended Generators

MITPHP2.0.2

Extended Laravel Artisan commands to generate migrations with schema definitions and pivot tables directly from the command line.

Visit WebsiteGitHubGitHub
2.4k stars345 forks0 contributors

What is Laravel 5 Extended Generators?

Laravel 5 Generators Extended is a Laravel package that enhances the framework's Artisan command-line tools by adding new migration generators. It allows developers to define database table schemas and pivot tables directly within the `make:migration` command, automating the creation of boilerplate migration files. This saves time and reduces manual coding when setting up or modifying database structures in Laravel applications.

Target Audience

Laravel developers who frequently work with database migrations and want to accelerate their workflow by generating code from command-line specifications. It's particularly useful for those building applications with complex database schemas or many pivot relationships.

Value Proposition

Developers choose this package because it integrates seamlessly with Laravel's existing Artisan commands, follows framework conventions, and significantly reduces the boilerplate code needed for migrations. Its intuitive schema syntax and support for foreign keys, pivot tables, and model generation make it a powerful productivity tool for Laravel projects.

Overview

This package extends the core file generators that are included with Laravel 5

Use Cases

Best For

  • Rapidly prototyping database schemas in Laravel applications
  • Generating pivot table migrations for many-to-many relationships
  • Automating foreign key constraint definitions in migrations
  • Reducing manual coding when creating or altering database tables
  • Maintaining consistent migration boilerplate across team projects
  • Accelerating development workflows for Laravel-based CRUD applications

Not Ideal For

  • Projects using Laravel 10 or newer, as the package officially supports only up to Laravel 9.
  • Developers who prefer manual migration editing for maximum control and customization over every detail.
  • Teams relying on database visualization tools or ORMs that generate migrations automatically without command-line input.
  • Applications with non-standard database schemas requiring complex migration logic beyond simple column definitions, such as spatial columns or custom triggers.

Pros & Cons

Pros

Schema Syntax Efficiency

Allows defining columns, types, and modifiers like nullable or unique in a single command, reducing boilerplate code as demonstrated with examples like 'email:string:unique:default("foo@example.com")'.

Pivot Table Automation

Quickly generates pivot table migrations with proper foreign keys and indexing using make:migration:pivot, streamlining many-to-many relationship setup without manual coding.

Intelligent Code Generation

Adapts migration boilerplate based on keywords like 'create' or 'remove' in the migration name, minimizing manual adjustments for common operations.

Optional Model Creation

Can generate accompanying Eloquent models with the --model=true flag, saving additional steps when setting up new database tables.

Cons

Limited Laravel Version Support

Officially supports only Laravel 6-9, making it incompatible with newer versions without potential breaking changes, as stated in the README's versions section.

Schema Syntax Constraints

The command-line schema format may not support all Laravel migration features, such as spatial columns or custom column types, limiting advanced use cases to what the syntax can express.

Dependency on Naming Conventions

Relies heavily on migration name keywords for boilerplate adaptation, which can be error-prone if naming conventions aren't followed strictly, leading to incorrect code generation.

Frequently Asked Questions

Quick Stats

Stars2,429
Forks345
Contributors0
Open Issues15
Last commit2 years ago
CreatedSince 2015

Tags

#developer-tools#productivity#database-schema#laravel#artisan-commands#migrations#php#code-generation

Built With

P
PHP
L
Laravel

Links & Resources

Website

Included in

Laravel13.0k
Auto-fetched 1 day ago

Related Projects

LiveWireLiveWire

A full-stack framework for Laravel that takes the pain out of building dynamic UIs.

Stars23,502
Forks1,735
Last commit1 day ago
Debug BarDebug Bar

Debugbar for Laravel (Integrates PHP Debug Bar)

Stars19,179
Forks1,607
Last commit2 days ago
IDE HelperIDE Helper

IDE Helper for Laravel

Stars14,891
Forks1,188
Last commit23 days ago
Intervention ImageIntervention Image

PHP Image Processing

Stars14,330
Forks1,491
Last commit5 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub