2017 © Pedro Peláez
 

library bootstrap-table-ajax

image

adamtorok96/bootstrap-table-ajax

  • Friday, March 23, 2018
  • by edems96
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,287 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 48 % Grown

The README.md

Bootstrap Table Ajax for Laravel 5

Bootstrap (data) tables
Laravel, (*1)

Install

composer require composer require adamtorok96/bootstrap-table-ajax, (*2)

Into config/app.php put this under providers:
, (*3)

AdamTorok96\BootstrapTableAjax\BootstrapTableAjaxServiceProvider::class,

Into config/app.php put this under aliases:
, (*4)

'AjaxResponse'  => AdamTorok96\BootstrapTableAjax\Facades\AjaxResponse::class,

Usage

Example #1

use AdamTorok96\BootstrapTableAjax\AjaxResponse;

class UsersController extends Controller
{
    public function index(Request $request)
    {
        return AjaxResponse::base(User::query(), $request)
            ->search([
                'name',
                'email'
            ])
            ->orderBy('name')
            ->get()
        ;
    }   
}

Example #2

use AdamTorok96\BootstrapTableAjax\AjaxResponse;

class NewsController extends Controller
{
    public function index(Ajax $request)
    {
        return AjaxResponse::base(News::query(), $request)
            ->search([
                'title',
                'author.name'
            ])
            ->orderBy('title')
            ->with([
                'author'
            ])
            ->withCount([
                'comments'
            ])
            ->get()
        ;
    }
}

The Versions

23/03 2018

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

by Adam Torok

23/03 2018

1.1.2

1.1.2.0

  Sources   Download

MIT

The Requires

 

by Adam Torok

20/03 2018

1.1.1

1.1.1.0

  Sources   Download

MIT

The Requires

 

by Adam Torok

20/03 2018

1.1

1.1.0.0

  Sources   Download

MIT

The Requires

 

by Adam Torok

10/08 2017

1.0

1.0.0.0

  Sources   Download

MIT

The Requires

 

by Adam Torok