Download the PHP package laztopaz/laracrud without Composer
On this page you can find all versions of the php package laztopaz/laracrud. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download laztopaz/laracrud
More information about laztopaz/laracrud
Files in laztopaz/laracrud
Package laracrud
Short Description This package is to help developers quickly create crud on laravel models.
License MIT
Homepage https://laravel-zero.com
Informations about the package laracrud
LaraCrud
Generate a full CRUD ready to deploy application from your console
Documentation
What this project currently does
- Let you interactively define your database schema
- Generate a fresh model into your app/Models folder and let you specify your default path.
- It helps you generate the $fillables, and the $casts arrays to your model
- Generate a migration file for you.
The main objective of the project is to help generate a working CRUD app based on your model definition.
Future updates would automatically;
- Generate a seeder class and factory for you. And you can decide not to generate it based on setting an optional parameter
- Generate routes
- Generate validation class
- Controllers
- views
Installation
- Go to the release page and download the laracrud binary
- Move it to the
sudo mv path/to/laracrud /usr/local/bin/
to run it as a root all the time - Give it permission
sudo chmod 755 /usr/local/bin/laracrud
to make it executable - We need to let bash know where the executable file is
nano ~/.bash_profile
Add this line below to bash_profile and save
alias generator="php /usr/local/bin/laracrud"
Then run this command:
source ~/.bash_profile
Finally, you can type generator make:crud ModelName
or laracrud make:crud ModelName in your terminal. You should see the below screen.
How to use
- From your terminal, navigate to your current Laravel project directory and type
laracrud
or the alias you've provided in the bash profile. --m=[create|update]
can be passed to the command if you want a new migration file, or you just want to update the existing schema.-
--g=[model|migration]
can also be passed to the command in case you only want to generate either a model or a migration. Without passing this parameter, the default mode will generate both model and migration files. -
--f=[folder path]
You can optionally pass it, if your model folder is not in app/Models. Otherwise, it will create or append the new file to the app/Models folder -
--mf=[string]
You can optionally pass it to give your migration file a meaningful name --d
You can dump the file content without first writing them to fileSupported Field Types
- This project supports all Laravel migration column types
- The default column type is string. Therefore, you can hit the return key if you do not want to change the type.
- For string and integer field type, you can also omit the length so that it will use the default length.
All versions of laracrud with dependencies
icanboogie/inflector Version ^2.0
illuminate/log Version ^7.0
intonate/tinker-zero Version ^1.2
laminas/laminas-text Version ^2.7
laravel-zero/framework Version ^7.0