This package provides an artisan command to generate a basic crud with Restful API support

Overview

NHRROB Crud Generator Package

Stars Total Downloads Latest Stable Version GitHub license

This package provides an artisan command to generate a basic crud

composer install command:

composer require nhrrob/crudgenerator

Crud Generator Commands

  • install:
php artisan crud:generator
  • If you want to keep backend files under Admin folder
    File Structure: Check below (Section => Bonus : Admin File Structure)
php artisan crud:generator --admin
  • Migration: Add title field and run migration
    • add field:
    $table->string('title');
    
    • run migration:
    php artisan migrate
    

Note:

  • This package creates resource route. Example:
    • Model title: Post
    • Resource route: example.com/posts
  • If you want to use Api, make sure Passport is installed.
    Link: https://github.com/nhrrob/laravelwiki

Loom Videos:

Modify Stubs:

  • Publish vendor files
php artisan vendor:publish

Remove Crud Generated Files:

  • Delete Crud
php artisan crud:generator:delete
  • If you have generated crud under Admin folder:
php artisan crud:generator:delete --admin
  • Manually delete migration file and remove route from web.php

Feel free to contact:
nazmulrobin.com | Twitter | Linkedin | Email

Bonus

Laravel 8 auth using laravel/ui:

composer require laravel/ui
php artisan ui bootstrap --auth
npm install && npm run dev
php artisan migrate

Bonus : API

API Helpline:

php artisan passport:install

Bonus : Admin File Structure

  • When you add --admin in crud generator commands =>
    It adds admin folder for views and Admin folder for controllers (including Api)

  • Sample File/Folder Structure:

#Controllers
app/Http/Controllers/
app/Http/Controllers/Admin

#Views
resources/views/
resources/views/admin

------------------------------

#API Controllers
app/Http/Controllers/Api
app/Http/Controllers/Api/Admin
You might also like...
A CRUD app made with Laravel and VueJS 3 (API Composition)

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

laravel adminlte with crud upload photo, ckeditor, validation & rest api

laravel crud with adminlte + restapi feature : Auth crud product (datatable, upload product using ajax, description with ckeditor) crud category displ

Projeto CRUD para gestão de clientes com consumo da API ViaCep

CRUD-Clientes-API Projeto CRUD para gestão de clientes com consumo da API ViaCep Requisitos PHP 7.4 MySQL Configuração do banco de dados Executar a qu

A Web Artisan list of categorized OPEN SOURCE PROJECTS built with Laravel PHP Framework.

Laravel-Open-Source-Projects A Web Artisan list of categorized OPEN SOURCE PROJECTS built with Laravel PHP Framework. This repository includes a compr

⚡️ This package provides a wonderful PHP skeleton to start building your next package idea.
⚡️ This package provides a wonderful PHP skeleton to start building your next package idea.

This package provides a wonderful PHP Skeleton to start building your next package idea. Requires PHP 8.0+ ⚡️ Create your package using Composer: comp

Basic calculator made in PHP, CSS3 and JavaScript.
Basic calculator made in PHP, CSS3 and JavaScript.

Basic Calculator in PHP Basic calculator in PHP made for treining. 👨‍💻 Used Technology PHP HTML CSS JavaScript 📝 License This project is under MIT

Template for repository helper, library - Basic, Simple and Lightweight

Template start helper, library Template for repository helper, library - Basic, Simple and Lightweight Use this Template First, you can Use this templ

A basic Laravel project aimed at facilitating rapid prototyping.
A basic Laravel project aimed at facilitating rapid prototyping.

HTG Laravel A basic Laravel project aimed at facilitating rapid prototyping. Why write yet another login form when you just want to try something out?

Simple mobile shop using basic php

simple-mobile-shop simple mobile shop using basic php Project Overview Go to your Xammp/wamp-server root folder Then create a folder named "mobileshop

Owner
Nazmul Hasan Robin
Web Developer | PHP | Laravel | VueJS | WordPress | AWS
Nazmul Hasan Robin
Basic Crud Generator (With Code Files, like GII (YII2)) Using Laravel, Livewire and Tailwind CSS

LiveCrud Live Crud Generator. This package generates Basic Crud with Livewire. Features Generate Complete Crud With Livewire Component and Blade Files

Ritesh Singh 28 Oct 12, 2022
Basic Crud operations using smarty and php

Smarty template engine Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. Documentati

null 0 Aug 8, 2022
a simple and secured RESTful API made with codeIgniter and JSON Web Tokens

CodeIgniter 4 Application Starter What is CodeIgniter? CodeIgniter is a PHP full-stack web framework that is light, fast, flexible and secure. More in

null 2 Oct 8, 2021
Until 2018, Backpack v3 used this Base package to offer admin authentication and a blank admin panel using AdminLTE. Backpack v4 no longer uses this package, they're now built-in - use Backpack/CRUD instead.

Note: This package is only used by Backpack v3. Starting with Backpack v4, everything this package does is included in Backpack/CRUD - one package to

Backpack for Laravel 845 Nov 29, 2022
A package for adding loading spinners to your Laravel Artisan commands

Table of Contents Overview Installation Requirements Install the Package Usage Adding Loading Spinners to Commands Adding Text to the Spinner Customis

Ash Allen 9 Oct 19, 2022
This package adds artisan commands to create VueJS components and InertiaJS components.

Laravel Vue Commands This package adds artisan commands to create VueJS components and InertiaJS components. Installation You can install the package

ArielMejiaDev 3 Sep 10, 2021
Someline Starter is a PHP framework for quick building Web Apps and Restful APIs, with modern PHP design pattern foundation.

Someline Starter PHP Framework Tested and used in production by Someline Inc. Someline Starter is a PHP framework for quick building Web Apps and Rest

Someline 844 Nov 17, 2022
Here you have yet another framework for writing RESTful web services in PHP

PHP-Rocker Here you have yet another framework for writing RESTful web services in PHP, jay! What sets this framework apart from many of the others is

Victor Jonsson 43 May 19, 2022
Laravel Package for crud generation

Crud and API Generator Package Package which let's you automate tedious CRUD Operations. Requirements Laravel Version: >= 8.0 PHP Version: >= 7.3 Comp

Niraj Basnyat(badass) 12 Mar 29, 2022
A super simple crud package for laravel

A super simple crud package for laravel

Ivan Preziosi 2 Feb 27, 2022