Is it possible to use paginate() with the select() method? Using the code below I get the error:
Call to a member function paginate() on a non-object
$query = 'SELECT * FROM items';
$results = DB::select($query)->paginate(10);
I know the following code works with paginate() with just the table() method:
$results = DB::table('plans_shared')->paginate(10);
It seems much easier for me to use the select() since I have many conditional AND/WHERE clauses