Questions tagged [yajra-datatable]

Use this tag for questions relating to the Yajra DataTables package, which is used to support the creation of jQuery DataTables in Laravel projects.

The Yajra DataTables package supports the creation of jQuery DataTables in Laravel projects.

Specifically, it provides support for server-side implementations of DataTables.

Additional Resources

377 questions
10
votes
4 answers

Laravel Yajra Datatable Server Side with pagination problems

I'm newby on Laravel and I'm trying to use Yajra Datatable Plugin with server side funtionality. The plugin works well with a small amount of records, but I have a large amount of about 100000 record. To speed up the process in my controller I…
Roberto Remondini
  • 242
  • 1
  • 6
  • 19
6
votes
2 answers

Laravel Datatables order by relationship column does not work

I have one User who can be assigned to many Company. I'm trying to render a table using Laravel Datatables & jQuery Datatables. It renders nicely and when clicking on the order icon in the table header, it sorts data by that column, except, it…
Mark
  • 323
  • 1
  • 5
  • 11
6
votes
1 answer

Yajra DataTable addColumn

I use yajra datatable but i've get problem when I use the method "addColumn". the one I use that method is work properly, but the other doesn't this is my source code : ->addColumn('action', function($arrProduct){ return …
Almaida Jody
  • 558
  • 2
  • 9
  • 19
6
votes
8 answers

how to show image in yajra datatable column , laravel5.3

i am adding a column in datatable for image like this : ->addColumn('product_brand_logo', function ($product_brand) { return '
user7647067
  • 61
  • 1
  • 1
  • 4
5
votes
2 answers

How to fix "The GET method is not supported for this route. Supported methods: PUT."

When I submit a request to update some data, I get this error "The GET method is not supported for this route. Supported methods: PUT.". How to get rid of this? Here I've added codes of web.php, AdminController.php and JS function to populate…
Yeamin Chowdhury
  • 502
  • 1
  • 9
  • 19
5
votes
2 answers

Yajra DataTable Is Not Installing on Laravel 5.7.*

I am facing problem while installing Yajra Datatable by using this Command " composer require yajra/laravel-datatables:^1.0 "on Powershell and I got errors. I have Uninstall Wampp and installed Xampp but the problem still exists. Please Help me out…
Adnan Ali
  • 83
  • 1
  • 5
5
votes
10 answers

Class 'Yajra\DataTables\DatatablesServiceProvider' not found

I've developed Laravel Project in my local computer. I used Yajra Pakagebox for using bootstrap datatables on it. Like this : composer require yajra/laravel-datatables-oracle php artisan vendor:publish Then I pushed them all into Hosting Server but…
Lee Chang Jian
  • 51
  • 1
  • 1
  • 7
4
votes
2 answers

How to order by child / parent column with Eloquent?

I have a table called terms which contains the following fields: id | name | slug | taxonomy | parent_id This is the current datasource: id | name | slug | taxonomy | parent_id 1 Pop pop category null 2 Rock rock category null …
sfarzoso
  • 1,356
  • 2
  • 24
  • 65
4
votes
1 answer

Yajra/Jquery datatable how to exclude records based on condition

How can I exclude data based on my condition on the addColumn function? What I tried is this but it will include records that are > 0 ->addColumn('total', function ($row) { $arr =…
draw134
  • 1,053
  • 4
  • 35
  • 84
4
votes
1 answer

Method Yajra\DataTables\CollectionDataTable::where does not exist

I have a datatable in Laravel Project. I've create a dropdown filter to filter KPI column. Here is my view code $(function() { $.ajaxSetup({ headers: { 'X-CSRF-TOKEN':…
Kameam
  • 81
  • 3
  • 10
4
votes
1 answer

How to editColumn on a relationship column in Laravel Yajra DataTables

I'm using Laravel 6 with Yajra Datatable. I'm creating a "SessionDataTable" on a Session Model. This model has a Patient relationship class Session extends Model { public function patient() { return…
iizno
  • 829
  • 1
  • 9
  • 28
4
votes
2 answers

Laravel, composer install, don't install laravel/framework upgrade to 5.8

What is wrong with my composer.json configuration. Tried To Upgrade To 5.6, 5.7 As Well Same Issue With Them Also. I googled for answers and follow along and also I check every possible line Eroor: Problem 1 - Conclusion: don't install…
Rohan
  • 41
  • 1
  • 4
4
votes
1 answer

Column search with filter in footer - footer filter not showing - Laravel Datatables Yajrabox

I am using Yajrabox Laravel datatables to display data. Very simple, just trying what is given in the tutorial. However, the text boxes to take input in the footer of the table is not showing up.…
Ravi
  • 195
  • 15
4
votes
2 answers

Foreach in Yajra DataTable Laravel

I'm trying to put a foreach loop inside my datatable but it wont work, P.S. if I remove the foreach everything works fine already, attached here is my code $Product = Product::query(); $colors = Color::all(); return…
Martney Acha
  • 2,802
  • 4
  • 33
  • 48
4
votes
1 answer

Laravel yajra Datatable : How to send parameters to DataTable Service Class for custom query?

How do I pass parameters like ( res_id, resname etc ) to the DataTable Service Class (RestaurantDataTable) for Custom DB queries like ( get only restaurant where id = x, or resname = xxx etc)? RestaurantController: use…
user5665082
1
2 3
25 26