File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change 6
6
use Illuminate \Contracts \Database \Query \Builder as QueryBuilder ;
7
7
use Illuminate \Support \Traits \Macroable ;
8
8
use Yajra \DataTables \Exceptions \Exception ;
9
- use Yajra \DataTables \Html \Builder ;
10
9
use Yajra \DataTables \Utilities \Config ;
11
10
use Yajra \DataTables \Utilities \Request ;
12
11
@@ -94,7 +93,7 @@ public function getConfig(): Config
94
93
}
95
94
96
95
/**
97
- * DataTables using Query .
96
+ * DataTables using query builder .
98
97
*
99
98
* @throws \Yajra\DataTables\Exceptions\Exception
100
99
*/
@@ -157,15 +156,7 @@ public function resource($resource)
157
156
public function validateDataTable (string $ engine , string $ parent ): void
158
157
{
159
158
if (! ($ engine == $ parent || is_subclass_of ($ engine , $ parent ))) {
160
- $ this -> throwInvalidEngineException ( $ engine, $ parent );
159
+ throw new Exception ( " The given datatable engine ` $ engine` is not compatible with ` $ parent`. " );
161
160
}
162
161
}
163
-
164
- /**
165
- * @throws \Yajra\DataTables\Exceptions\Exception
166
- */
167
- public function throwInvalidEngineException (string $ engine , string $ parent ): void
168
- {
169
- throw new Exception ("The given datatable engine ` {$ engine }` is not compatible with ` {$ parent }`. " );
170
- }
171
162
}
You can’t perform that action at this time.
0 commit comments