seeder-migration-issues

This commit is contained in:
RafficMohammed
2023-01-30 14:23:34 +05:30
parent 4d918c722f
commit 2ec836b447
3628 changed files with 116006 additions and 187 deletions

View File

@@ -0,0 +1,52 @@
<?php namespace Chumper\Datatable;
use Chumper\Datatable\Engines\CollectionEngine;
use Chumper\Datatable\Engines\QueryEngine;
use Input;
/**
* Class Datatable
* @package Chumper\Datatable
*/
class Datatable {
/**
* @param $query
* @return QueryEngine
*/
public function query($query)
{
return new QueryEngine($query);
}
/**
* @param $collection
* @return CollectionEngine
*/
public function collection($collection)
{
return new CollectionEngine($collection);
}
/**
* @return Table
*/
public function table()
{
return new Table;
}
/**
* @return bool True if the plugin should handle this request, false otherwise
*/
public function shouldHandle()
{
$echo = Input::get('sEcho',null);
if(/*Request::ajax() && */!is_null($echo) && is_numeric($echo))
{
return true;
}
return false;
}
}