Git Product home page Git Product logo

scaffold-interface's Introduction

SensioLabsInsight

Build Status StyleCI Built For Laravel Total Downloads Latest Stable Version Latest Unstable Version License

A Smart CRUD Generator

Using laravel v5.1.* ??, it recommended to use scaffold-interface v1.4.11

Using laravel v5.3.* ??, make sure that routes path is configured, config file

Scaffold

####Features:

  • Generate your model,views,controller and migrations just in a few clicks.

  • Views support Bootstrap and Materializecss.

  • Generate OneToMany relationships including views and controllers.

  • AdminLTE dashboard template with users management system (users-roles-permissions) using laravel-permission.

  • Softdeletes and timestamps.

  • A delete confirmation message.

  • Using an interface to design your table.

  • Rollbacking possibility.

  • Generate CRUD for packages, see Lpackager, CRUD for packages/modules.

###I. Package installation

  1. Run composer require to install Scaffold-Interface:
Add the package to your dependencies in composer.json:

```json
require : {
    "Amranidev/scaffold-interface": "v1.5.*"
}
```

Then update composer:

```
$ composer update
```
  1. Add the service providers to config/app.php:
```php

Amranidev\ScaffoldInterface\ScaffoldInterfaceServiceProvider::class,
Amranidev\Ajaxis\AjaxisServiceProvider::class,
Spatie\Permission\PermissionServiceProvider::class,

```
  1. Publish the assets in your application with:
```
$ php artisan vendor:publish

```
  1. Migrate for the Scaffold Interface table:
```
$ php artisan migrate

```
  1. Auth scaffolding:
```
$ php artisan make:auth
```

Congratulations, you have successfully installed Scaffold Interface!

###II. Quick Start

  1. Access to Scaffold Interface:

    http://{your-project}/scaffold to get into Scaffold Interface.

  2. Table creation:

    You can add many of attributes such as a string, date, longtext,etc.

  3. After the creation, to complete your scaffolding, go to the terminal and run:

    $ php artisan migrate
    
    
  4. Finally :

    Go to http://{your-project}/{your-model} to see the result.

  5. Rollback :

    If you want to rollback the table just check this:

    Imgur

    Before you make your rollback make sure that you have rolled back your table in the database.

  6. Dashboard:

    Go ahead and create a new user, $ php artisan tinker:

    $user = new \App\User();
    $user->name = "john doe";
    $user->email = "[email protected]";
    $user->password = Hash::make("password");
    $user->save();
    

    Then add HasRole to app/User.php:

    use Illuminate\Foundation\Auth\User as Authenticatable;
    use Spatie\Permission\Traits\HasRoles;
    
    class User extends Authenticatable
    {
      use HasRoles;
    
      // ...
    }

    Well, it's time to click on dashboard button or go to http://{your-project}/dashboard.

####Contribution

Any ideas are welcome. Feel free to submit any issues or pull requests.

####Credits

####TODOS

  • 100% Code coverage + Maximum code quality.
  • Allow to generate ManyToMany relationships.

####DONE

  • Users management system (users-roles-permissions).
  • AdminLTE Dashboard.
  • Improve Vuejs.
  • Add a select for OneToMany (on data fields) in interface.
  • Laravel 5.3 supported.
  • Laravel 5.2 supported.
  • Laravel 5.1 supported.

####Contact : [email protected]

scaffold-interface's People

Contributors

amranidev avatar jeroen-g avatar shoully avatar zoxta avatar

Watchers

Siêu 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.