Download the PHP package alnutile/inertia-crud without Composer
On this page you can find all versions of the php package alnutile/inertia-crud. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package inertia-crud
Help with some basic CRUD and UI using Inertia, Tailwind
This assumes you are using JetStream and will assume those components are there
Thanks to https://github.com/spatie/package-skeleton-laravel
TL;DR
I got sick of making the same thing over and over on projects, so I made a command to output my stub files, so I can with one command have all the Inertia CRUD files needed. (DELETE is coming soon)
Yes I know there are others out there, but I wanted one that fit my current workflow.
All you need to do is run the command:
And it will do the rest.
Yes I ask for the
Model
name capitalized and plural, so I do not have to code that logic.
Then you will have these files made:
And the routes will have:
Overview
This will put some simple ready to go CRUD files into place, for Inertia.
For example an Index page:
PHP Faker generated data in example btw
I just need to do is line up the fields and columns in the Index.vue
file.
Then when someone pressed Add I need that page as well.
You will see this has a select list. This shows a component I include, based on JetStream that makes that easy as well.
The controller includes a test 🎉
All these routes will be made as well, also including testse:
This package assumes this layout.
app/Http/Controllers
for the controllersroutes/web.php
for the routesresources/js/Components
for a few of thoseresources/js/Pages/
to put the resource related Vue crud
On that note it assumes:
- Tailwind
- VueJS 3
- Inertia
- vue-toastification
Some components come from JetStream, like almost all!
You may have to fix the import AppLayout from '@/Layouts/AppLayout.vue';
in the files
I will make that a config option later.
TODO
- Add DELETE
- Add config file for more options/paths etc
- Add config option for the
AppLayout.vue
Installation
You can install the package via composer:
Usage
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Alfred Nutile
- All Contributors
License
The MIT License (MIT). Please see License File for more information.**
All versions of inertia-crud with dependencies
spatie/laravel-package-tools Version ^1.14.0
illuminate/contracts Version ^9.0|^10.0