Download the PHP package sentgine/crudwizard without Composer
On this page you can find all versions of the php package sentgine/crudwizard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sentgine/crudwizard
More information about sentgine/crudwizard
Files in sentgine/crudwizard
Package crudwizard
Short Description A simple but powerful Laravel package for effortless CRUD operations.
License MIT
Informations about the package crudwizard
Crudwizard
Crudwizard is a powerful Laravel package designed to simplify the process of generating CRUD (Create, Read, Update, Delete) functionality for your Laravel applications. With Crudwizard, you can effortlessly create and manage your database tables, models, controllers, views, and routes with just a few simple commands.
Features
- Efficient CRUD Generation: Crudwizard provides a streamlined approach to generating CRUD operations, allowing you to create database migrations, models, controllers, views, test, factory, and routes in a matter of seconds.
- Customizable Templates: The package offers a range of customizable view, enabling you to tailor the generated code to match your project's specific requirements.
Requirements
- Laravel 10.x or higher.
- PHP 8.0 or higher.
- Use Tailwind CSS to make your life easier.
Installation
(1) You can install the package via Composer by running the following command:
(2) You must publish the config and view files for better control.
(3) Then, at the root of your laravel project, type the command below. It will ask you the name of the controller and the form fields.
or
Sometimes you may want to overwrite the existing resource files. Crudwizard does not allow you to do that by default, as it will skip overwriting your files. You can can just add the --force option to your command.
(4) You can also specify a prefix. It will then create the controller under the Dev/Admin and the views under the folder dev/admin.
(5) If you make a mistake, you can just delete the resource files. Note that this will not delete the migration files. You'll have to manually delete it.
or
(6) To get you started quickly, I would advise you to copy and paste the entire Tailwind CSS @layer component directive below. You can customize this later.
(7) Make sure you run your Laravel local server.
(8) Open another terminal, and run the command below to compile and build your frontend asssets.
(9) You can explore other commands as well.
Testing
By default, generating the CRUD will create a test file. There are two things you need to do to be able to test this.
(1) Add this code below to your Laravel app's config/database.php file under the connections key.
(2) Under the root directory of your Laravel app, you will see a phpunit.xml file. Add this code below inside the "php" tag.
This will allow you to use a new database for your test. It is generally good practice not to use the configuration for your live database. Instead, use a separate database for testing.
(3) And add this to your .env file under the root of your Laravel app.
Changelog
Please see the CHANGELOG file for details on what has changed.
Security
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
Credits
Crudwizard is built and maintained by Adrian Alconera. Visit my YOUTUBE channel!
License
The MIT License (MIT). Please see the LICENSE file for more information.