yajra / laravel-datatables-editor

Laravel DataTables Editor Integration.
https://yajrabox.com/docs/laravel-datatables/editor-installation
MIT License
115 stars 14 forks source link

Add customActions property. #58

Closed yajra closed 3 years ago

yajra commented 3 years ago

This PR will:

  1. Add customActions property to simplify editor's extended functionality.
  2. Fix HTTP code (422) when an error occurs.

Usage

class DocumentsDataTableEditor extends DataTablesEditor
{
    protected $model = Document::class;

    protected $customActions = ['import'];

    public function import(Request $request)
    {
        // process import
    }