I am trying to implement pointing on page and even what I have so far.
Controller in my head:
public function showIndex () {$ countries = country: PageGate (5); See Return: Creating ('Index') - & gt; Together ('country', $ country); }
And in my opinion, I am just doing this:
However, it produces an extremely long error, it is too long to fully post:
Brighten \ endorsement \ Paginator Object (Lighten the factory: Protected) \ endorsement \ Factory Object ([Request: protected] =>
Brighten \ html \ object object ([json: protected] => [sessionStore: protected ] <(Parameter: protected) => array ()) [request] =>
=> [attribute] => symphony \ component \ htp foundation \ foot The metabag object
Symfony \ Component \ HttpFoundation \ ParameterBag object ([parameter: secure]
=> array ()) [query] => symphony \ component \ htp foundation \ parameterbag
< P> object ([parameter: protected] => array ()) [server] =>Symphony \ component \ HTPF Foundation \ serverbug object ([parameter: protected] =>
Geeko / 20100101 Firefox / 36.0 [HTTP_ACCEPT] =>
Text / html, ([HTTP_USER_AGENT] => Mozilla / 5.0 (Windows NT 6.1; WOW64; rv: 36.0)
Application Ation / xhtml + xml, application / xml; Q = 0.9, / ; Q = 0.8
[HTTP_ACCEPT_LANGUAGE] => N-US, N; Q = 0.5 [HTTP_ACCEPT_ENCODING] => Gzip,
deflate [http_COOKIE] =>
What am I doing wrong? Am I missing something?
I'm going to post an answer for clarification "error" You There is no error at all. This is very long, because it's full time for :: PageGate (5)
method if you scroll down too much of this print_r
statement , You should be able to set your result. For example, search for id
of one of your results and you should enter Array ([id] = & gt; 1 [column_2] => gt [column_3] = & gt; Y ...
where column_N
is the name of the column in your table.
The easiest rule of thumb when using Laravel:
If you return a collection, use the foreach
loop.
And this means that if you use the - & Gt;
or -> Paginated ()
, Your results by using @foreach Go through ($ item AS $ item)
.
Hopefully provided some explanation.
No comments:
Post a Comment