ramiawadallah's avatar

Pagination Error

No hint path defined for [pagination].

0 likes
3 replies
martinbean's avatar

@ramiawadallah Please put a bit more effort in to your questions.

Where are you getting this error? A class? A view? You need to give us more to go on to be able to help you.

ramiawadallah's avatar

@martinbean

This is my code in the controller<?php namespace App\Http\Controllers\Backend; use Illuminate\Http\Request; use App\Http\Requests; use App\Http\Controllers\Controller; use Validator; use App\User;

class HomeController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */

public function index()
{

    $users = User::paginate(15);
    return view(user('rule').'_rule.index',compact('users'));
}

}

This is in the index.blade.php

Online Users!

Name Email Online @foreach($users as $user) {{ $user->name }} {{ $user->email }} @if($user->isOnline())@else @endif() @endforeach() {{ $users->links() }}

Rajabi's avatar

In your view, you need to pass the view file for the pagination links.

{!! $users->links('vendor.pagination.default') !!}

Please or to participate in this conversation.