Skip to content

Baronsindo/laravel-crud-generator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Crud Generator

Packagist Licence StyleCI

This Laravel Generator package provides and generate Controller, Model (with eloquent relations) and Views in Bootstrap for your development of your applications with single command.

  • Will create Model with Eloquent relations
  • Will create Controller with all resources
  • Will create views in Bootstrap

Requirements

Laravel >= 5.5
PHP >= 7.1

Installation

1 - Install

composer require ibex/crud-generator --dev

2- Publish the default package's config

php artisan vendor:publish --tag=crud

Usage

php artisan make:crud {table_name}

php artisan make:crud banks

Add a route in web.php

Route::resource('banks', 'BankController');

Route name in plural slug case.

Options

  • Custom Route
php artisan make:crud {table_name} --route={route_name}
  • Removing prefix from
php artisan make:crud {table_name} --prefix={prefix_to_remove}

Example In a table named az_banks the prefix would be az_, if you added this option the model name will be Bank and the controller name will be BankController

Example

Model Model

Controller Controller

Listing Listing

Form Form

Author

M Awais // Email Me

Buy me a Coffee

ko-fi

About

Laravel CRUD Generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%