maxolex/scaffold-interface

A Smart CRUD Generator For Laravel (FRENCH)

Installs: 97

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Language:JavaScript

Type:laravel-package

dev-master / 1.8.x-dev 2024-01-25 10:23 UTC

This package is auto-updated.

Last update: 2024-03-25 10:51:31 UTC


README

Imgur

Features

  • Generate your models, views, controllers, routes and migrations just in a few clicks.

  • Models visualization through a graph presentation (New Feature).

  • Views scaffolding support Bootstrap and Materialize css.

  • Generate (OneToMany,ManyToMany) relationships including views and controllers.

  • Websockets using pusher notifications.

  • 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.

  • Rollback possibility.

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

Installation

  1. Run the following command:

composer require maxolex/scaffold-interface

composer require laravel/ui "^3.0" (LARAVEL 8)

npm install

npm run dev

  1. Add the service providers to config/app.php:
Maxolex\ScaffoldInterface\ScaffoldInterfaceServiceProvider::class,
Amranidev\Ajaxis\AjaxisServiceProvider::class,
Spatie\Permission\PermissionServiceProvider::class,
  1. Publish the assets in your application with:

php artisan vendor:publish --provider="Maxolex\ScaffoldInterface\ScaffoldInterfaceServiceProvider" --force

php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider" --tag="migrations"

php artisan vendor:publish --provider="Amranidev\Ajaxis\AjaxisServiceProvider"

What does this command publishes:

app/Http/Controllers/UserController.php

app/Http/Controllers/RoleController.php

app/Http/Controllers/PermissionController.php

resources/views/scaffold-interface (dashboard,users,roles,permissions blade)

resources/views/scaffold-interface/layouts (you can edit your layouts before making crud)

public/js/scaffold-interface-js

public/css/scaffold-interface-css

config/maxolex/config.php

database/migrations/migration_file
  1. Run migrations:

php artisan migrate

  1. Authentication scaffolding:

php artisan ui bootstrap --auth

  1. Add HasRole dependency to app/User.php:
<?php

namespace App;

use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Spatie\Permission\Traits\HasRoles;

class User extends Authenticatable
{
    use Notifiable;
    use HasRoles;
}

Congratulations, you have successfully installed Scaffold Interface!

Let's begin.

Go to http://{your-project-url}/scaffold

Detailed Documentation

Contribution

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

Author

Credits

Contact : maxolex12@gmail.com