Download the PHP package syamsoul/laravel-datatable-ssp without Composer
On this page you can find all versions of the php package syamsoul/laravel-datatable-ssp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-datatable-ssp
DataTable SSP (PHP) for Laravel
Documentation, Installation and Usage Instructions
See the documentation for detailed installation and usage instructions.
Introduction
This package allows you to manage your DataTable from server-side in Laravel app (inspired by original DataTable SSP).
You can refer here (click here) about the implementation of original DataTable SSP.
- Requirement
- Installation
- Usage & Reference
- How to use it?
- Example
- In PHP (Controller)
- In Blade (Views)
Requirement
- Laravel 9.0 and above
Installation
This package can be used in Laravel 9.0 or higher. If you are using an older version of Laravel, there's might be some problem. If there's any problem, you can create new issue and I will fix it as soon as possible.
You can install the package via composer:
NOTE: Please see CHANGELOG for more information about what has changed recently.
Usage & Reference
* Before you read this section, you can take a look the example below to make it more clear to understand.
How to use it?
First, you must add this line to your Controller:
And then inject SSP service to Controller's method (or create instance using PHP new
keyword):
Which is:
-
$dt_query
is a QueryBuilder/EloquentBuilder or callable function that will return QueryBuilder/EloquentBuilder, for example: -
$dt_cols_opt
is an array of your columns' options, for example:The available columns' options are as below:
Which is:
-
$dt_col_header
is the header of the column (at the table in views/blade), for example: -
$db_col_name
is column name based on the DB, for example: -
$dt_class
is a class/classes name which will be added to the table (in views/blade), for example: $dt_formatter
is like a modifier that can modify the data from DB to be shown in views/blade, for example:
-
Example
In PHP (Controller)
In Blade (Views)
Support me
If you find this package helps you, kindly support me by donating some BNB (BSC) to the address below.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-datatable-ssp with dependencies
illuminate/console Version ^9.0|^10.0|^11.0
illuminate/support Version ^9.0|^10.0|^11.0
illuminate/database Version ^9.0|^10.0|^11.0
illuminate/http Version ^9.0|^10.0|^11.0