After calling smoothness() method as a query scope, you also can use a specific argument called $smoothness in your view for many sakes like appending values to pagination.
This is a basic way to use this package.
$items = \App\Item::smoothness()->paginate(5);
And in your view..
$items->appends($smoothness->appends)->links()
and so on.
That's it. (Please see more details on Github)
Oh, come to think of it.
I wonder how other developers make their mind when naming their own package.
In my case, I don't have a lot of vocabularies because I'm not a native English speaker.
So I sometimes use thesaurus dictionary that we can use free online.
However, I am sometimes scared to adopt unknown names for my own package because it possibly has other meanings that are not proper as a package name.
Umm...I should have started learning English more earlier, haha.

No comments:
Post a Comment