LaravelPackages.net
Acme Inc.
Toggle sidebar
bukankalengkaleng/laravel-entity

Generate an entity along with their artefacts (Model, Controller, Migration, Form Request, Tests, Factory, Policy)

66
6
v1.1.1
About bukankalengkaleng/laravel-entity

bukankalengkaleng/laravel-entity is a Laravel package for generate an entity along with their artefacts (model, controller, migration, form request, tests, factory, policy). It currently has 6 GitHub stars and 66 downloads on Packagist (latest version v1.1.1). Install it with composer require bukankalengkaleng/laravel-entity. Discover more Laravel packages by bukankalengkaleng or browse all Laravel packages to compare alternatives.

Last updated

Laravel Entity 🧱

This readme is written in Bahasa. English version is here.

| | Status | | --- | --- | | Release | Latest Stable Version Total Downloads License | | Code Quality | Scrutinizer Code Quality codecov Code Intelligence Status | | Development | Build Status Maintainability Test Coverage |


Deskripsi

Artisan command untuk membuat entitas yang lengkap.

Motivasi

Membuat entitas (contoh: Product, Employee, dsb) yang lengkap (ada Model, Factory, Migration, Form Requests, Feature / Unit tests, Policy, dan Controller-nya) akan memakan waktu jika dilakukan manual. Artisan command ini akan mempercepatnya.

Instalasi

composer require bukankalengkaleng/laravel-entity

Laravel v5.5 dan keatas akan otomatis meregistrasi package ini. Jika kamu menggunakan versi dibawah itu, kamu perlu melakukannya secara manual dalam file config/app.php:

'providers' => [
    // ...
    BukanKalengKaleng\LaravelEntity\LaravelEntityServiceProvider::class,
];

Cara Menggunakan

  1. Jalankan perintah

    php artisan entity:make Product
    
  2. Kamu akan dapatkan entitas Product yang lengkap:

    • app/Models/Product.php
    • database/migrations/create_products_table.php
    • database/factories/ProductFactory.php
    • database/seeds/ProductsTableSeeder.php
    • database/seeds/dummies/Products.php
    • app/Http/Controllers/Admin/ProductController.php
    • app/Http/Controllers/Frontend/ProductController.php
    • app/Http/Requests/Admin/ProductStore.php
    • app/Http/Requests/Admin/ProductUpdate.php
    • app/Http/Requests/Frontend/ProductStore.php
    • app/Http/Requests/Frontend/ProductUpdate.php
    • app/Policies/ProductPolicy.php
    • app/tests/Feature/ProductTest.php
    • app/tests/Unit/ProductTest.php

Namespaces entitas (Admin dan Frontend) dapat diatur dalam file config/entity.php yang harus kamu publish dahulu dengan cara:

php artisan vendor:publish --tag="laravel-entity"

Screenshots

Roadmap

Untuk mengetahui rencana kedepan package ini silahkan membaca Roadmap.

Kontribusi contributions welcome

  1. Kirim PR
  2. Gak perlu baper kalo PR tertolak

Catatan Revisi

Catatan revisi dapat dilihat di Changelog ini.

Lisensi

Lisensi dari package ini adalah MIT License (MIT). Silahkan lihat bagian Lisensi ini untuk lebih jelasnya.

Star History Chart