Git Product home page Git Product logo

larawiz's Introduction

Artem Maltsev - Unsplash #3n7DdlkMfEg

Latest Version on Packagist License Coverage Status

Larawiz

The Laravel 8 scaffolder you wanted but never got, until now!

Use a single YAML file to create models, migrations, factories, seeders, pivot tables... everything with braindead easy syntax.

Requirements:

  • PHP 7.3, or PHP 8
  • Laravel 8.x

Install:

Install this package using Composer directly inside your development packages.

composer require larawiz/larawiz --dev

Usage

If is your first time using Larawiz, publish the sample YAML files into the larawiz/ directory:

php artisan larawiz:sample

Check it out and play with it. Once you're done, scaffold your project with this artisan command:

php artisan larawiz:scaffold

Larawiz will automatically create the files needed to set up your project like magic.

Safety first

Larawiz will automatically copy your app and some of your database directories as backups every time you scaffold. It only deletes the migrations folder.

You can find it in your application default storage path under the storage/larawiz/backups directory, and copy them over your project directory if you need to "backtrack" on something.

Generating your app

Larawiz uses braindead easy syntax, so you shouldn't need to read the docs:

models:
  Author:
    name: string
    email: string
    password: string
    publications: hasMany

  Publication:
    title: string
    body: longText
    author: belongsTo

...but if want more customization, go ahead to the documentation since it explains everything: table names, fillable properties, pivot models, primary keys, timestamps, soft-deletes, factories, etc.

License

This package is open-sourced software licensed under the MIT license.

Laravel is a Trademark of Taylor Otwell. Copyright © 2011-2021 Laravel LLC.

larawiz's People

Contributors

darkghosthunter avatar ltkort avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.