ghanem/ajaxblade

Easy AJAX with blade
144 10
Install
composer require ghanem/ajaxblade
Latest Version:0.2.2
PHP:>=5.5.9
Laravel:5
License:MIT
Last Updated:Aug 22, 2026
Links: GitHub  ·  Packagist
Maintainer: ghanem

Easy AJAX with blade

Installation

First, pull in the package through Composer.

"require": {
	"ghanem/ajaxblade": "0.2.*"
}

or use.

composer require ghanem/ajaxblade

if using Laravel 5, include the service provider within config/app.php.

'providers' => [
    'Ghanem\Ajaxblade\AjaxbladeServiceProvider'
];

now run this comand:

php artisan vendor:publish

Example

Within your controllers, before you perform a redirect...

public function show()
{
    $articles = Article::orderBy('id', 'DESC')->Paginate(20);

    return view('home',compact('articles'));
}

this is home view :

<!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>

Related Packages

philo/laravel-blade

Use the simple and yet powerful Laravel Blade templating engine as a standalone...

689,955 355
wapmorgan/morphos-blade

Adds @plural, @name, @numeral, @ordinal and @money tags to Blade for Russian plu...

90,305 33
alexdover/blade-set

A very simple blade extension which allows variables to be set.

57,995 23
railroad/bladesora

A blade template package for musora.

57,117 1
styde/blade-pagination

Laravel's pagination with Blade templating support

14,354 70

Version History

Version Released PHP Laravel License
0.2.2 >=5.5.9 ~5.0 MIT
0.2.1 >=5.5.9 ~5.0 MIT