mosamy/preloader

Simple preloader for view pages

1.0.0 2023-03-24 01:08 UTC

This package is auto-updated.

Last update: 2025-04-27 05:42:12 UTC


README

Easy way to make a preloader for your app

installation

composer require mosamy/preloader

Publish the package assets

php artisan vendor:publish --provider="Mosamy\Preloader\PreloaderServiceProvider" --tag="assets"

Usage

include the page assets in every page you will use the preloader

<!DOCTYPE html>
<html lang="ar" dir="rtl">
  <head>
    <meta charset="utf-8">
    ...
    @PreloaderStyle
  </head>

  <body>
    <x-preloader::init />

	...

    @PreloaderJs
  </body>
 </html>

Thats it!