PHPackages                             makhweb/blade-x-loader - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. makhweb/blade-x-loader

ActiveLibrary

makhweb/blade-x-loader
======================

Speed up your application with SPA-like dynamic page loading over AJAX 🚀 (Laravel, Blade)

01311PHP

Since Sep 8Pushed 5y ago1 watchersCompare

[ Source](https://github.com/makhweb/blade-x-loader-v2)[ Packagist](https://packagist.org/packages/makhweb/blade-x-loader)[ RSS](/packages/makhweb-blade-x-loader/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Speed up your application with SPA-like dynamic page loading over AJAX 🚀 (Laravel, Blade)
=========================================================================================

[](#speed-up-your-application-with-spa-like-dynamic-page-loading-over-ajax--laravel-blade)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Latest Stable Version](https://camo.githubusercontent.com/b1f761874edcadc8e3c076a36589fefabc91d020f4a79a57e85e8546d640d20a/68747470733a2f2f706f7365722e707567782e6f72672f6d616b687765622f626c6164652d782d6c6f616465722f762f737461626c65)](https://packagist.org/packages/makhweb/blade-x-loader)[![Total Downloads](https://camo.githubusercontent.com/150b16c5191b1fcfa2a7263f5a2ac558068e5b612a047a476e41214afb6a10a4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d616b687765622f626c6164652d782d6c6f616465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/makhweb/blade-x-loader)

Demo
----

[](#demo)

Website:

Source:

Installation
------------

[](#installation)

You can install the package via Composer:

```
composer require makhweb/blade-x-loader
```

Assets should be published by this command:

```
php artisan vendor:publish --provider="Makhweb\BladeXLoader\BladeXLoaderServiceProvider" --tag="publishable"
```

Usage
-----

[](#usage)

You should use **fromLayout(\[layout\])** function when your blade component is extending from other layout.

```
@extends(fromLayout('main'))
```

Also you need to include the package's assets. Example (layout.blade.php):

```
@include('blade-x-loader::assets')
```

You must create an element with identified **id** attribute where the package can put html from the request:

```

 // HTML

```

In the finish, you need to add the attribute:

```
Home
```

Optionally the config file can be published with:

```
php artisan vendor:publish --provider="Makhweb\BladeXLoader\BladeXLoaderServiceProvider" --tag="config"
```

Caching
-------

[](#caching)

You just need to add the `cache-for="[seconds]"` attribute to the tag:

```
Home

```

All data will be stored in **localStorage**.

Blade directives
----------------

[](#blade-directives)

### @ajax

[](#ajax)

Shows when request is ajax

```
@ajax
 This is an ajax request
@endajax
```

When you need to check that the request **is not ajax,**you can use the **@notAjax** blade directive.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security-related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](/LICENSE.md) for more information.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7fe3cea5083179b3506d2776257e8e1ce68b985637d2c9816c567734748555be?d=identicon)[makhweb](/maintainers/makhweb)

---

Top Contributors

[![makhweb-old](https://avatars.githubusercontent.com/u/52928263?v=4)](https://github.com/makhweb-old "makhweb-old (4 commits)")

### Embed Badge

![Health badge](/badges/makhweb-blade-x-loader/health.svg)

```
[![Health](https://phpackages.com/badges/makhweb-blade-x-loader/health.svg)](https://phpackages.com/packages/makhweb-blade-x-loader)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
