Download the PHP package tobidsn/apigenerator without Composer
On this page you can find all versions of the php package tobidsn/apigenerator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tobidsn/apigenerator
More information about tobidsn/apigenerator
Files in tobidsn/apigenerator
Informations about the package apigenerator
Laravel Admin CRUD Generator
This Generator package provides various generators like Admin CRUD, Controller, Model, View based from table for your painless development of your applications.
Requirements
Laravel >= 5.5
PHP >= 7.0
Installation
Once the package is installed, you should register the Tobidsn\ApiGenerator\ApiGeneratorServiceProvider
service provider. Normally, Laravel 5.5+ will register the service provider automatically.
After that, publish its assets using the vendor:publish
Artisan command:
Usage
Generating Migrations
Running Migrations
Admin CRUD Command
Signature information
Test
Please Login to laravel and access http://localhost:8000/admin/user
Configuration
You will find a configuration file located at config/apigenerator.php
Custom Template
When you want to use your own custom template files, then you should turn it on and it will use the files from resources/stubs/
Path
You can change your template path easily, the default path is resources/stubs/
.
View Columns
When generating CRUD or the views, the generator will assume the column number to show for the CRUD grid or detail automatically from the config. You can change it.
Custom Delimiter
Set your delimiter which you use for your template vars. The default delimiter is %%
in everywhere.
Note: You should use the delimiter same as yours template files.
View Template Vars
This configuration will help you to use any custom template vars in the views index
, form
,list
, create
, edit
, show
Route group
Route group of the controller
View path
View path for view generator
Form Helper
Helper for custom view and form
Custom Templates
The package allows user to extensively customize or use own templates.
All Templates
To customize or change the template, you need to follow these steps:
-
Just make sure you've published all assets of this package. If you didn't just run this command.
-
To override the default template with yours, turn on
custom_template
option in theconfig/apigenerator.php
file. -
Now you can customize everything from this
resources/stubs/
directory. - Even if you need to use any custom variable just add those in the
config/apigenerator.php
file.
License
This project is licensed under the MIT License - see the License File for details