Offering Mentorship Laravel/PHP mentor @ coding coach

Offering Mentorship Laravel/PHP mentor @ coding coach

Gummibeer

Astroneer
Moderator
Local time
10:47
Joined
Oct 5, 2019
Messages
1,187
Pronouns
he/him

Hey all,

I offer mentoring, coaching, sparring and review for Laravel and some general PHP.

Independent if you are a total beginner or advanced I will try to help you with learning and improving your skills and provide my knowledge for your projects.

I won't write code for you but guide you through the process so that you will learn how to tackle a similar problem in the future.

CodingCoach: https://mentors.codingcoach.io/?technology=laravel&country=DE&name=Tom+Witkowski
Telegram: https://t.me/Gummibeer
Discord: Gummibeer#3103
Email: [email protected]
PS: I hate emails 😉 - will be faster to respond on the other channels. 🚀

 
Last edited:

Blmz

Member
Local time
10:47
Joined
Apr 2, 2021
Messages
1

I am working on laravel project and I want to use pagination on it by the following example https://adevait.com/laravel/laravel-overwriting-default-pagination-system.
For Project requirement I used Query like this:-
$result = DB::select("SELECT * FROM table WHERE ".$where." ORDER BY ".$sort." ".$orderBy);

And for pagination
use Illuminate\Pagination\Paginator;

and
Paginator::make($result, sizeof($result), 5);

But it show error
Call to undefined method Illuminate\Pagination\Paginator::make()

and When I used
use Illuminate\Support\Facades\Paginator;

It show error
Class 'Illuminate\Support\Facades\Paginator' not found

Please let me know how to resolve these errors.
Thanks.

 

Mike Rees

Member
Local time
09:47
Joined
Feb 3, 2020
Messages
77

You can just call ->paginate(5) on the query I believe. Though this probably should have been its own thread.

 
Top