Download the PHP package infancyit/igloo without Composer
On this page you can find all versions of the php package infancyit/igloo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download infancyit/igloo
More information about infancyit/igloo
Files in infancyit/igloo
Package igloo
Short Description An automated process for create basic CRUD functionality
License MIT
Informations about the package igloo
Igloo Code Generator
Contents
- Change Log
- Installation
- Usage
- Super Usage
Change Log
New in v1.2
- GUI support inside the package
- Drop Down API included
- Several Bug Fixed
New in v1.1
- Laravel 5.7 Support
- Namespace Supports
- Several Bug Fixed
Installation
1) To install Igloo Code Generator, run the following command:
2) Run the command below to load all configuration file:
3) For allowing CORS on a API middleware group or route, add the HandleCors
middleware to middleware
array in the file:
Usage
Create Model
Let's start by creating a basic Model:
Model will be saved on app\Models
folder.
Run the following command on project root.
If you want to add fillable
or guarded
value you may pass the list of columns as well:
or
or
Create Service
Let's create some basic Service which will extends our BaseService from app\Services
:
Run the following command on project root.
Create Repository
Let's create some basic Repository which will extends our BaseRepository from app\Repositories
:
Run the following command on project root.
Create Transformer
Let's create a basic Transformer:
Transformer will be created in the app/Transformers/Api
folder.
Run the following command on project root.
In the creation of Transformer
attributes
list are required. All columns should be separated by a single ,
(comma). This will create the main portion like this
Create Request
Let's create a basic Request:
Transformer will be created in the app/Request/Api
folder.
Run the following command on project root.
In the creation of Request
attributes
list are required. All columns should be separated by a single ,
(comma). This will create the main portion like this
Create Route
You can also create API routes for your model. Run the following command on project root.
This command will output like this:
This command will not save anything. You've to copy this segment from console and paste it in your web.php
or api.php
file.
The assumption for the controller name will be [Modelname]Controller.
Installation
-
For bundle create visit
- Or you can visit
\igloo
route after package installation.
License
Igloo Code Generator is free software distributed under the terms of the MIT license.
All versions of igloo with dependencies
laracasts/generators Version ^1.1
spatie/laravel-fractal Version ^5.3
ellipsesynergie/api-response Version ^0.15.0
barryvdh/laravel-cors Version ^0.11.0