2017 © Pedro Peláez
 

library scaffolding

image

gloudemans/scaffolding

  • Tuesday, April 1, 2014
  • by Crinsane
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel Scaffolding

Scaffold an application., (*1)

This packages is still under development. So use on own risk., (*2)

Create entity models in Yaml format, let me give you an example, (*3)

name: User

table: users

attributes:
  - name: email
    type: string
    fillable: true
    rules: [required, email]
  - name: password
    type: string
    fillable: true
    rules: ['min:10']
  - name: firstname
    type: string
    fillable: true
    rules: [required, 'min:2']
  - name: lastname
    type: string
    fillable: true
    rules: [required, 'min:2']

settings:
  destroyable: true
  editable: true
  increments: true
  timestamps: true
  softdeletes: true
  auth: true

relations:
  has_many:
    - entity: Task
    - entity: Something
      key: some_id

Put them in a folder called entities at the root of your application., (*4)

Now you have two artisan commands to use, (*5)

  • artisan scaffold to scaffold the application
  • artisan scaffold:clear to remote the scaffolding

The Versions