When I try to use $student->links() I see this error :
FacadeIgnitionExceptionsViewException
Call to undefined method AppStudent::links()
I checked the controller, model etc but all of them seem OK… How can I fix this?
(I tried this code both on my Macbook and VPS -CentOS7- but same problem occurs)
That part of my view looks like this:
</tr>
@endforeach
</tbody>
</table>
{{ $student->links() }}
</div>
@endsection
2
Answers
You need to paginate in your backend code.
$students = AppStudent::paginate(15);
And then you can access the
links()
Change
to
(use plural form).