2017-25 © Pedro Peláez
 

library entitize

A crud package for Laravel, with bootstrap and former

image

wcr/entitize

A crud package for Laravel, with bootstrap and former

  • Tuesday, June 5, 2018
  • by francescomonti
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Entitize

Latest Version on Packagist ![Total Downloads][ico-downloads] Build Status StyleCI, (*1)

This is where your description should go. Take a look at contributing.md to see a to do list., (*2)

Installation

Via Composer, (*3)

``` bash $ composer require wcr/entitize, (*4)


## Usage #### 1. Publish components #### ``` bash $ php artisan vendor:publish --tag:entitize

2. Create Model whith Migration

``` bash $ php artisan make:model Book -m, (*5)

edit migration `/database/migrations/0000_00_00_000000_create_books_table.php`
``` php
<?php
/** more code **/
    public function up()
    {
        Schema::create('books', function (Blueprint $table) {
            $table->increments('id');
            $table->string('title');
            $table->string('autor');
            $table->date('published_at')->nullable();
            $table->boolean('deleted')->default(0); // This field is REQUIRED
            $table->timestamps();
        });
    }
/** more code **/
?>

Launch migration ``` bash $ php artisan migrate, (*6)


#### 3. Create controller #### ``` bash $ php artisan make:controller BookController

4. use entitize in controlle

<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Wcr\Entitize\Controllers\Entitize;

use App\Book;

class BookController extends Controller
{
    use Entitize;

    public $tableParams = ['Id'=>'id', 'Title'=>'title', 'Author'=>'author', 'Created at'=>'created_at'];

    public $fields = array(
        [
            'name' => 'title',
            'label' => 'Title',
            'validation' => 'required'
        ],
        [
            'name' => 'author',
            'label' => 'Author',
            'validation' => 'required'
        ],
        [
            'name' => 'published_at',
            'label' => 'Published at',
            'type' => 'date'
        ],
    );
}

Change log

Please see the changelog for more information on what has changed recently., (*7)

Testing

bash $ composer test, (*8)

Contributing

Please see contributing.md for details and a todolist., (*9)

Security

If you discover any security related issues, please email author email instead of using the issue tracker., (*10)

Credits

License

license. Please see the license file for more information., (*11)

The Versions

05/06 2018

dev-master

9999999-dev https://github.com/francescomonti/entitize

A crud package for Laravel, with bootstrap and former

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel entitize

05/06 2018

0.2.3

0.2.3.0 https://github.com/francescomonti/entitize

A crud package for Laravel, with bootstrap and former

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel entitize

05/06 2018

0.2.2

0.2.2.0 https://github.com/francescomonti/entitize

A crud package for Laravel, with bootstrap and former

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel entitize

05/06 2018

0.2.1

0.2.1.0 https://github.com/francescomonti/entitize

A crud package for Laravel, with bootstrap and former

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel entitize

05/06 2018

0.2

0.2.0.0 https://github.com/francescomonti/entitize

A crud package for Laravel, with bootstrap and former

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel entitize

05/06 2018

0.1

0.1.0.0 https://github.com/francescomonti/entitize

A crud package for Laravel, with bootstrap and former

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel entitize