public function index()
{
$data = new Ruangrapat();
$data = $data->paginate(7);
return view('ajax-result.ruangrapat.index')->with('data', $data);
}
The data will be displayed on a table and i use ->link for pagination buttons.But when i click 1 of them.The table will show the page but the page will be containing pure html without any css.How do i make the pagination show the page real time like ajax?
with a / before css? If so, that's probably why. Use the full domain to load the css, or use an absolute url instead of a relative one to force it to load the css starting from the site root.