How are the link labels controlled? My are pagination.next and pagination.previous instead of the greater than less than like yours for those two. I can work around that in Vue, but am curious how you changed those.
How to work the pagination with partial visits and page? Every time I hit 1 page, I lose the data (when using lazy loading) my controller is : return Inertia::render('Dashboard', [ 'companies' => $companies, 'documents' => Inertia::lazy(fn () => $documents) ]); and the button to get the list function list() { Inertia.reload( { preserveState: true, only: ['documents'], } ) }
That Component thing is amazing. It could have solved tones of issues I faced before.
11:06 loved your laugh. Thanks from Islamabad, Pakistan. I am going through your videos and learning.
Jeffery, why do you use the map function after you already pull all the data instead of adding a "select([columns])" or "pluck([columns])" instead?
Amazing tutorial.
That tailwind library is not free.
You can do.
User::paginate( 10, ['id', 'name', 'body']);
i been waiting for this damn!!!!
Stunning tutorial!!!
How are the link labels controlled? My are pagination.next and pagination.previous instead of the greater than less than like yours for those two. I can work around that in Vue, but am curious how you changed those.
Will the laravel model protected columns still work with this hiding of sensitive data using this stack?
How to add perPage (pagination length) ?
I have never heard nor seen any documentation about ->through ...
How to work the pagination with partial visits and page?
Every time I hit 1 page, I lose the data (when using lazy loading)
my controller is :
return Inertia::render('Dashboard', [
'companies' => $companies,
'documents' => Inertia::lazy(fn () => $documents)
]);
and the button to get the list
function list()
{
Inertia.reload(
{
preserveState: true,
only: ['documents'],
}
)
}
Simplier: User::paginate(15, ['id', 'name']);
Hi Jeffery ,
This code doesn't work on my side ,
template>
props is being undefined while there is link array in attrs did you find any solution?