Download the PHP package santigarcor/laravel-vuetable without Composer
On this page you can find all versions of the php package santigarcor/laravel-vuetable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download santigarcor/laravel-vuetable
More information about santigarcor/laravel-vuetable
Files in santigarcor/laravel-vuetable
Package laravel-vuetable
Short Description Vuetable laravel backend package
License MIT
Informations about the package laravel-vuetable
Laravel Vuetable (Laravel 8.x/7.x/6.x/5.x Package)
Laravel Vuetable is the backend component that can work with the Vuetable component.
The latest release requires PHP 7.2.5-7.4 and supports Laravel 5.7, 5.8, 6. ,7. and 8.*
Laravel Vuetable | L5.4 | L5.5 | L5.6 | L5.7 | L5.8 | L6 | L7 | L8 |
---|---|---|---|---|---|---|---|---|
< 1.0 | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :x: | :x: | :x: |
> 1.0 | :x: | :x: | :x: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
Installation
-
Run the composer require command from your terminal:
composer require "santigarcor/laravel-vuetable"
-
If you laravel version not supported the package discovery, set in your
config/app.php
:-
In the providers array add:
Vuetable\VuetableServiceProvider::class,
-
In the aliases array add:
'Vuetable' => Vuetable\VuetableFacade::class,
-
Usage
Your request to the controller should have this data:
You can also specify the sorting order using the "order" attribute (required by https://mannyyang.github.io/vuetable-3/ ):
So for example lets create the table for the users with their companies. Then in the javascript we should have:
In Controller we can provide Eloquent:
Or Collection
This controller is going to return:
What does Laravel Vuetable support?
Using the Eloquent Builder you can:
- Filter/Sort by model columns.
- Make joins and filter/sort by them.
- Define the length of the pagination.
- Add columns.
- Edit columns (if the column has a cast defined, it doesn't work).
Using the Collection you can:
- Filter/Sort by model columns.
- Define the length of the pagination.
- Add columns.
- Edit columns.
License
Laravel Vuetable is open-sourced software licensed under the MIT license.
Contributing
Please report any issue you find in the issues page. Pull requests are more than welcome.
All versions of laravel-vuetable with dependencies
illuminate/database Version ^5.7|^6.0|^7.0|^8.0
illuminate/http Version ^5.7|^6.0|^7.0|^8.0
illuminate/support Version ^5.7|^6.0|^7.0|^8.0