Download the PHP package bushart/crudmagic without Composer
On this page you can find all versions of the php package bushart/crudmagic. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package crudmagic
Laravel-magic-Crud
If you want to save time on your crud operations
This Laravel package is for saving time on CRUD operations when used in combination with Repositories or Services. The trait covers the basics needed for running simple CRUD operations. It also comes with a Contract that you can bind to your services via automated contextual binding.
Docs
- Installation
- Configuration
- Generators
Installation
Here is the complete video of the usage and installation of the package.
Install package
Add the package in your composer.json by executing the command.
Next,
add the service provider to app/config/app.php
Configuration
Publish configuration files
Laravel 8.*
Namespace for resource controllers
If you wish to set a default namespace for resource controllers use this option. Which will be used when in silent mode in the resource generator.
Generators
Controller Generator
You can generate either a blank controller or a complete resource controller.
This will generate the resource controllers with all necessary basic functions already filled in for you based on the Crudable functionality.
This of course only covers the very basic functions but saves you from writing the same boiler plate code over and over again.
If you just need a blank controller with just the services implemented use the blank option like so:
View Generator
You can generate basic views for create/edit/index based on the Bootstrap version that shipped with Laravel.
Resource Generator
If you're starting out fresh you may wish to generate the entire resource including the model, service, resource controller Route and views .
Note
Please make sure that you use the jquery version ^3.0. If you do not include jquery in your main blade so please put this in your main blade with Javascript libraries.
Have fun CRUDding! :-)