All Projects → JunaidQadirB → Cray

JunaidQadirB / Cray

Licence: mit
A Laravel package to help you generate nearly complete CRUD pages like crazy!

Projects that are alternatives of or similar to Cray

Laravel Code Generator
An intelligent code generator for Laravel framework that will save you time! This awesome tool will help you generate resources like views, controllers, routes, migrations, languages and/or form-requests! It is extremely flexible and customizable to cover many on the use cases. It is shipped with cross-browsers compatible template, along with a client-side validation to modernize your application.
Stars: ✭ 485 (+349.07%)
Mutual labels:  laravel-package, crud, generator
Laravel Id Generator
Easy way to generate custom ID from database table in Laravel framework.
Stars: ✭ 88 (-18.52%)
Mutual labels:  laravel, laravel-package
Laravel Excel
🚀 Supercharged Excel exports and imports in Laravel
Stars: ✭ 10,417 (+9545.37%)
Mutual labels:  laravel, laravel-package
Dropzone Laravel Image Upload
Laravel 5.2 and Dropzone.js auto image uploads with removal links
Stars: ✭ 92 (-14.81%)
Mutual labels:  laravel, laravel-package
Laravel Ajax Crud
🧐 The Ultimate Guide For Creating Laravel CRUD AJAX Application using Laravel 5.8, Vue 2, Tailwindcss, Vue-router, and Axios
Stars: ✭ 84 (-22.22%)
Mutual labels:  laravel, crud
Laravel Schedule List
Laravel package to add command to list all scheduled artisan commands
Stars: ✭ 84 (-22.22%)
Mutual labels:  laravel, laravel-package
Laravel Rest Api
Powerful RestAPI plugin for Laravel
Stars: ✭ 90 (-16.67%)
Mutual labels:  laravel, laravel-package
Laravel Console Logger
Logging and Notifications for Laravel Console Commands.
Stars: ✭ 79 (-26.85%)
Mutual labels:  laravel, laravel-package
Lara Lens
Laravel package for display diagnostic (config, database, http connections...)
Stars: ✭ 96 (-11.11%)
Mutual labels:  laravel, laravel-package
Laravel Tracer
Shows the path of each blade file loaded in a template
Stars: ✭ 96 (-11.11%)
Mutual labels:  laravel, laravel-package
Laravel Google Translate
This package makes using the Google Translate API in your laravel app a breeze with minimum to no configuration, clean syntax and a consistent package API.
Stars: ✭ 97 (-10.19%)
Mutual labels:  laravel, laravel-package
Laravel Enum
Elegant Enum implementation for Laravel
Stars: ✭ 107 (-0.93%)
Mutual labels:  laravel, laravel-package
Crud Generator
Laravel CRUD Generator
Stars: ✭ 1,244 (+1051.85%)
Mutual labels:  laravel, generator
Bigbluebutton
Package that provides easily communicate between bigbluebutton server and laravel framework
Stars: ✭ 85 (-21.3%)
Mutual labels:  laravel, laravel-package
Laravel Url Shortener
Powerful URL shortening tools in Laravel
Stars: ✭ 80 (-25.93%)
Mutual labels:  laravel, laravel-package
Laravel Sync Migration
Developer tool helps to sync migrations without refreshing the database
Stars: ✭ 89 (-17.59%)
Mutual labels:  laravel, laravel-package
Laravel Table
Generate tables from Eloquent models.
Stars: ✭ 101 (-6.48%)
Mutual labels:  laravel, generator
Laravel Pdf
A Simple package for easily generating PDF documents from HTML. This package is specially for laravel but you can use this without laravel.
Stars: ✭ 79 (-26.85%)
Mutual labels:  laravel, laravel-package
Eloquent Approval
Approval process for Laravel Eloquent models
Stars: ✭ 79 (-26.85%)
Mutual labels:  laravel, laravel-package
Admin One Laravel Dashboard
Admin One — Free Laravel Dashboard (Bulma Buefy Vue.js SPA)
Stars: ✭ 94 (-12.96%)
Mutual labels:  laravel, laravel-package

Cray For Laravel

Latest Version on Packagist Build Status Quality Score Total Downloads

What is Cray?

Cray is a disposable Laravel package to help you generate nearly complete CRUD pages like crazy. Literally. It's also a bit opinionated.

If you build straight-forward CRUD pages more often manually writing all the same logic becomes a chore. Cray will not only save you a save but also give you a better way to organize your code.

So what do you mean by disposable?

You use Cray and forget about it. It isn't coupled with your installation of Laravel and it is preferred to be installed as a dev dependency. Cray generates the files and it forgets about them and they are all yours to modify do whatever you want.

What does it actually do?

Suppose you are building a blog, and you want to create a Post model then you have to do a ton of other tedious and to be honest, boring things like creating migrations, model factories, the controller, form validation and adding all the logic and what not.

So what Cray does is when you tell it the model name, it will do all those boring things I listed earlier. When it's done you have the following:

  • Post.php
  • PostController.php with all the necessary logic to list, edit, create and delete posts.
  • PostStoreRequest.php and PostUpdateRequest.php
  • Timestamped create_posts_table.php migration file
  • PostFactory.php
  • posts views directory with index.blade.php, create.blade.php, edit.blade.php, show.blade.php, modals/delete.balde.phpas well as a blank _form.blade.php for you to add the fields.

Then all you have to do is:

  • Add the columns to the migration file
  • Add the necessary fields (as defined in the last step) to the _form.blade.php
  • Add validation rules for the fields you added to the form.

Installation

composer require jq/cray --dev

Then publish the stubs

php artisan vendor:publish --tag=cray

It will generate stubs to resources/vendor/cray/stubs directory.

Usage

php artisan cray Post

Once done, it will show you the details of the files generated.

Factory created successfully in /database/factories/PostFactory.php
Created Migration: 2020_03_14_151409_create_posts_table
Model created successfully in /app/Post.php
Controller created successfully in /app/Http/Controllers/PostController.php
View created successfully in /resources/views/posts/index.blade.php
View created successfully in /resources/views/posts/create.blade.php
View created successfully in /resources/views/posts/_form.blade.php
View created successfully in /resources/views/posts/edit.blade.php
View created successfully in /resources/views/posts/show.blade.php
View created successfully in /resources/views/posts/modals/delete.blade.php
Request created successfully in /app/Http/Requests/PostStoreRequest.php
Request created successfully in /app/Http/Requests/PostUpdateRequest.php

Now add the necessary fields and run

php artisan migrate

And that saved you an hour worth of repetitive and boring work which you can spend on more important development challenges.

Optional Packages

Changelog

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].