When i put in my view {!! $questions->links(); !!} i don't see the pagination style and the page dont take 6 post per page like i put in my controller ..
My post Controller : class QuestionsController extends Controller {
/**
* Display a listing of the resource.
*
* @return Response
*/
public function index()
{
$questions = \App\Question::latest()->paginate(6);
$questions = \App\Question::unsolved();
$bars = \App\Question::unsolvedbar();
$links = str_replace('/?', '?', $questions->render());
return view('questions.index',compact('questions','bars','links'));
}
My Pagination Links in my View: {!! $questions->links(); !!}