All Projects → redbastie → crudify

redbastie / crudify

Licence: other
A Laravel 8 CRUD package for rapid scaffolding and development.

Programming Languages

PHP
23972 projects - #3 most used programming language
javascript
184084 projects - #8 most used programming language
SCSS
7915 projects
Blade
752 projects

Projects that are alternatives of or similar to crudify

pinipig
🚀 Performant webservice framework
Stars: ✭ 25 (+47.06%)
Mutual labels:  crud
cakephpvue-spa
A CakePHP + VueJS single page application skeleton/boilerplate.
Stars: ✭ 40 (+135.29%)
Mutual labels:  crud
FISCO-BCOS
FISCO BCOS是由微众牵头的金链盟主导研发、对外开源、安全可控的企业级金融区块链底层技术平台。 单链配置下,性能TPS可达万级。提供群组架构、并行计算、分布式存储、可插拔的共识机制、隐私保护算法、支持全链路国密算法等诸多特性。 经过多个机构、多个应用,长时间在生产环境中的实践检验,具备金融级的高性能、高可用性及高安全性。FISCO BCOS is a secure and reliable financial-grade open-source blockchain platform. The platform provides rich features including group architecture, cross-chain communication protoc…
Stars: ✭ 1,603 (+9329.41%)
Mutual labels:  crud
tide-basic-crud
Basic CRUD api using Rust / Tide / Sqlx / Postgresql
Stars: ✭ 27 (+58.82%)
Mutual labels:  crud
badaso
The API & platform builder, build your apps 10x faster even more, it's open source & 100% free !
Stars: ✭ 650 (+3723.53%)
Mutual labels:  crud
ASP.NET-Core-2-MVC-CRUD-datatables-jQuery-Plugin
Asp.Net Example implementation of datatables.net using Asp.Net Core 2 Mvc CRUD datatables jQuery Plugin
Stars: ✭ 25 (+47.06%)
Mutual labels:  crud
Dancer-Plugin-SimpleCRUD
Quick and effortless CRUD (create/read/update/delete) operations based on database tables
Stars: ✭ 25 (+47.06%)
Mutual labels:  crud
prophet
用于构建 react 中后台前端应用框架
Stars: ✭ 12 (-29.41%)
Mutual labels:  crud
eloquent-mongodb-repository
Eloquent MongoDB Repository Implementation
Stars: ✭ 18 (+5.88%)
Mutual labels:  crud
fastapi-react
Single Page App with FastAPI and React
Stars: ✭ 41 (+141.18%)
Mutual labels:  crud
servant-beam-realworld-example-app
Exemplary fullstack Medium.com clone powered by Servant and Beam
Stars: ✭ 33 (+94.12%)
Mutual labels:  crud
Ajax-CRUD-example-in-laravel
Example performing CRUD operations in laravel using ajax.
Stars: ✭ 69 (+305.88%)
Mutual labels:  crud
ionic4-angular6-crud-example
Building CRUD Mobile App using Ionic 4, Angular 6 and Cordova
Stars: ✭ 50 (+194.12%)
Mutual labels:  crud
Crud
CRUD PORTO Containers for apiato and Angular2 modules generator, based on Laravel 5.4 and Angular 2.4+
Stars: ✭ 23 (+35.29%)
Mutual labels:  crud
CRUDReactNativeSQLite
CRUD de app em React Native utilizando armazenamento local com SQLite
Stars: ✭ 16 (-5.88%)
Mutual labels:  crud
antd-curd
📦 基于 ant design 、 dva 、 antd-form-mate 的增删改查页面组件。
Stars: ✭ 26 (+52.94%)
Mutual labels:  crud
backoffice
React GUI-Framework based on Material UI; provides a couple of components for back-office apps (CRUD-based APIs)
Stars: ✭ 17 (+0%)
Mutual labels:  crud
ux
Laravel UI, Auth, & CRUD scaffolding package using Bootstrap & Livewire.
Stars: ✭ 34 (+100%)
Mutual labels:  crud
helppo
Instant admin UI for your database
Stars: ✭ 14 (-17.65%)
Mutual labels:  crud
laravel-crud-forms
Create CRUD Forms for Laravel Models.
Stars: ✭ 38 (+123.53%)
Mutual labels:  crud

NO LONGER MAINTAINED

This package is no longer maintained. Please consider my latest package here: https://github.com/redbastie/tailwire


Crudify

Crudify is a Laravel 8 CRUD package which promotes rapid scaffolding and development. It uses a tried and true stack and intuitive techniques that will save you time and hassles.

Requirements

  • A server compatible with Laravel 8
  • Composer
  • NPM

Features

  • Automatic user timezones
  • AJAX forms, modals, and response handlers
  • Responsive data tables
  • Font Awesome icons
  • Sensible Bootstrap styling out of the box
  • CRUD generator command (make:crud)
  • Automatic migrations command (migrate:auto)
  • Migration, factory, and rule definitions inside models
  • Automatic routing based on controller methods
  • Dynamic model fillables
  • & more

Third Party Packages Used

Links

Installation

Crudify was designed to work with a clean Laravel 8 install.

Install Laravel:

laravel new vehicle-app

Configure the database in your .env file:

DB_DATABASE=vehicle_app
DB_USERNAME=root
DB_PASSWORD=

Now, install Crudify via composer:

composer require redbastie/crudify

Then, run the Crudify install command:

php artisan crudify:install

All done. The only thing left to do is create a user, either via tinker or the DatabaseSeeder.

Usage Example

Generate CRUD for a new model e.g. a Vehicle

php artisan make:crud Vehicle

This will generate your controller, data table, model, factory, views, nav item, and auto route.

Modify the migration method inside the new Vehicle model class:

public function migration(Blueprint $table)
{
    $table->id();
    $table->timestamps();
    $table->string('name');
    $table->string('brand');
}

You can also specify the factory definition and rules in the model:

public static function definition(Generator $faker)
{
    return [
        'name' => $faker->name,
        'brand' => $faker->company,
    ];
}

public static function rules(Vehicle $vehicle = null)
{
    return [
        'name' => ['required', Rule::unique('vehicles')->ignore($vehicle->id ?? null)],
        'brand' => ['required'],
    ];
}

Specify a Vehicle seeder in the DatabaseSeeder class:

\App\Models\User::factory()->create([
    'email' => '[email protected]',
]);

\App\Models\Vehicle::factory(100)->create();

Note that I've added a User seeder here as well, which we will use to log in with using the password password after.

Add some data table columns in the VehicleDataTable class:

protected function getColumns()
{
    return [
        Column::make('id'),
        Column::make('name'),
        Column::make('brand'),
        Column::make('created_at'),
        Column::computed('action')->title(''),
    ];
}

Add form fields in the vehicles/form.blade.php view file:

<x-form-input label="{{ __('Name') }}" name="name"/>
<x-form-input label="{{ __('Brand') }}" name="brand"/>

Run a fresh automatic migration command with seeding:

php artisan migrate:auto --fresh --seed

You can specify --fresh and/or --seed in the migrate:auto command in order to run fresh migrations and/or seed afterwards.

Now you should be able to login to your app and click on the Vehicles link in the navbar to perform CRUD operations on the seeded data.

To get an idea how the automatic routing works, check out the VehicleController. After updating controller methods, use php artisan route:list to see your route info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].