Answers for "where clause with paginate laravel multiple column"

PHP
1

laravel multiple paginate

# use default 'page' for this
$collection1 = Model::paginate(20);

# use custom 'other_page' for this
$collection2 = Model2::paginate(20);
$collection2->setPageName('other_page');
Posted by: Guest on May-24-2020
0

where clause with paginate laravel multiple column

"SELECT * FROM students WHERE students.user_id = $id AND (students.name like '%$q%' OR students.last_name Like '%$q%' OR students.email Like '%$q%')"
Posted by: Guest on April-11-2021

Code answers related to "where clause with paginate laravel multiple column"

Browse Popular Code Answers by Language