2017 © Pedro Peláez
 

library ajax-crud-generator

Generates basic scaffolding for AjaxCrud JS Plugin to allow for quick and easy AJAX CRUD on forms and modals

image

ads/ajax-crud-generator

Generates basic scaffolding for AjaxCrud JS Plugin to allow for quick and easy AJAX CRUD on forms and modals

  • Monday, July 13, 2015
  • by scs-ben
  • Repository
  • 1 Watchers
  • 6 Stars
  • 490 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 1 % Grown

The README.md

ads-ajax-crud-generator

Agility Data Systems Scaffolding Generator for AJAX Crud

This module creates partial files to use in conjunction with the AJAX Crud JS plugin (https://github.com/DavidVranish/AjaxCrud), (*1)

Step 1:, (*2)

Set up composer, add the package to your require tag:, (*3)

"ads/ajax-crud-generator": "1.0.*"

Also add a publish command so that the files stay up to date:, (*4)

"scripts": {
        ...
        "post-update-cmd": [
            ...
            "php artisan vendor:publish --provider=\"Ads\\AjaxCrud\\AjaxCrudServiceProvider\" --tag=partials --force",
            "php artisan vendor:publish --provider=\"Ads\\AjaxCrud\\AjaxCrudServiceProvider\" --tag=commands --force",
            ...

run, (*5)

composer update

Step 2: Publish the necessary files, (*6)

Add the service provider to config/app.php:, (*7)

...
'Ads\AjaxCrud\AjaxCrudServiceProvider',
...

Run:, (*8)

php artisan vendor:publish --provider="Ads\AjaxCrud\AjaxCrudServiceProvider"

Step 3: Add the command to the app/Console/Kernel.php to use in command line:, (*9)

'App\Console\Commands\AjaxCrudCommand',

Step 4: Set up the location to the AjaxCrud plugin, (*10)

If you are using Bower, there is no need to modify to config file, simply add this line to your bower.json file:, (*11)

"ajax_crud": "git@github.com:DavidVranish/AjaxCrud.git"

If you are not going to use Bower to, you need to modify the config file to point to the location of AjaxCrud[.min].js file:, (*12)

For example:, (*13)

  'ajax_crud_js_path' => '/js/ajax_crud/js/AjaxCrud.min.js',

Step 5: Add HTML dependencies to your master layout blade file:, (*14)

@include('partials.modals.delete_modal')
@include('partials.modals.edit_crud_modal')
@include('partials.modals.new_crud_modal')

and, (*15)

<script type="text/javascript" src="{{ asset(config('ajaxCrud.ajax_crud_js_path')) }}"></script>

Step 6: You can now create scaffolding through the php artisan command line:, (*16)

php artisan make:crud --controllerPrefix=[Vendor] --crudModel=[Contact]

The controller prefix is the capitalized prefix for the controller that will handle the CRUD request, the model name is the capitalized name of the primary model being edited, (*17)

The Versions

13/07 2015

dev-master

9999999-dev

Generates basic scaffolding for AjaxCrud JS Plugin to allow for quick and easy AJAX CRUD on forms and modals

  Sources   Download

LGPLv3

The Requires

 

by Agility Data Systems

laravel ajax crud js support

01/07 2015

1.0.6

1.0.6.0

Generates basic scaffolding for AjaxCrud JS Plugin to allow for quick and easy AJAX CRUD on forms and modals

  Sources   Download

LGPLv3

The Requires

 

by Agility Data Systems

laravel ajax crud js support

01/07 2015

1.0.5

1.0.5.0

Generates basic scaffolding for AjaxCrud JS Plugin to allow for quick and easy AJAX CRUD on forms and modals

  Sources   Download

LGPLv3

The Requires

 

by Agility Data Systems

laravel ajax crud js support

01/07 2015

1.0.4

1.0.4.0

Generates basic scaffolding for AjaxCrud JS Plugin to allow for quick and easy AJAX CRUD on forms and modals

  Sources   Download

LGPLv3

The Requires

 

by Agility Data Systems

laravel ajax crud js support

30/06 2015

1.0.3

1.0.3.0

Generates basic scaffolding for AjaxCrud JS Plugin to allow for quick and easy AJAX CRUD on forms and modals

  Sources   Download

LGPLv3

The Requires

 

by Agility Data Systems

laravel ajax crud js support