First, pull in the package through Composer.
or use.
'providers' => [
'Ghanem\Ajaxblade\AjaxbladeServiceProvider'
];
Within your controllers, before you perform a redirect...
public function show()
{
$articles = Article::orderBy('id', 'DESC')->Paginate(20);
return view('home',compact('articles'));
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script src="//code.jquery.com/jquery.js"></script>
<script src="{{ public_path('vendor/ajaxblade/ajaxblade.js') }}"></script>
</head>
<body>
<div class="container">
<div class="abs">
@foreach ($users as user)
<div> $user->name </div>
@endforeach
@ajaxblade($users)
</div>
</div>
</body>
</html>