PHPackages                             fukumori/laravel-blade-include-relative - 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. [Templating &amp; Views](/categories/templating)
4. /
5. fukumori/laravel-blade-include-relative

AbandonedArchivedLibrary[Templating &amp; Views](/categories/templating)

fukumori/laravel-blade-include-relative
=======================================

Allows to include blade template with relative path based on current view.

v5.8.4(6y ago)89.5k3[3 issues](https://github.com/fukumori/laravel-blade-include-relative/issues)MITPHP

Since Jun 1Pushed 6y ago1 watchersCompare

[ Source](https://github.com/fukumori/laravel-blade-include-relative)[ Packagist](https://packagist.org/packages/fukumori/laravel-blade-include-relative)[ RSS](/packages/fukumori-laravel-blade-include-relative/feed)WikiDiscussions master Synced yesterday

READMEChangelog (8)Dependencies (1)Versions (8)Used By (0)

Laravel Blade Include Relative
==============================

[](#laravel-blade-include-relative)

Allows to include blade template with relative path based on current view.

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

[](#installation)

Require this package with composer.

```
composer require fukumori/laravel-blade-include-relative
```

### Clear view cache BEFORE usage

[](#clear-view-cache-before-usage)

```
php artisan view:clear
```

Usage
-----

[](#usage)

Make your view including sub-view with relative path

```

{{-- full include with hint --}}
@include('site::partials.included-view', ['name' => 'site::partials.included-view'])
{{-- full include (normal usage) --}}
@include('site.partials.included-view', ['name' => 'site.partials.included-view'])
{{-- relative include --}}
@include('partials.included-view', ['name' => 'partials.included-view'])
{{-- relative includeIf --}}
@includeIf('partials.included-view', ['name' => 'if partials.included-view'])
{{-- relative includeWhen --}}
@includeWhen(true, 'partials.included-view', ['name' => 'when partials.included-view'])
{{-- relative each --}}
@each('partials.included-view', ['each1 partials.included-view', 'each2 partials.included-view'], 'name')
```

Make your sub-view

```

Included view with: {{ $name ?? '' }}.
```

Call your view

```

Route::view('/test', 'site.some-file');
```

See the magic appear

```
Included view with: site::partials.included-view.
Included view with: site.partials.included-view.
Included view with: partials.included-view.
Included view with: if partials.included-view.
Included view with: when partials.included-view.
Included view with: each1 partials.included-view.
Included view with: each2 partials.included-view.
```

Know Issues
-----------

[](#know-issues)

If a view was previously loaded with a name and does not exist in the current paths, the last valid view with that name will be include.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 87.5% 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.

###  Release Activity

Cadence

Every ~15 days

Recently: every ~22 days

Total

7

Last Release

2449d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d6b3fd0aa56e55b475e5ce54a67e1d903b01983b6efebb7867d8130bdd05f7b9?d=identicon)[fukumori](/maintainers/fukumori)

---

Top Contributors

[![fukumori](https://avatars.githubusercontent.com/u/8474568?v=4)](https://github.com/fukumori "fukumori (7 commits)")[![levifukumoriapis3](https://avatars.githubusercontent.com/u/88398934?v=4)](https://github.com/levifukumoriapis3 "levifukumoriapis3 (1 commits)")

---

Tags

blade-templatelaravelrelativeblade

### Embed Badge

![Health badge](/badges/fukumori-laravel-blade-include-relative/health.svg)

```
[![Health](https://phpackages.com/badges/fukumori-laravel-blade-include-relative/health.svg)](https://phpackages.com/packages/fukumori-laravel-blade-include-relative)
```

###  Alternatives

[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.2k438.5k29](/packages/tightenco-jigsaw)[spatie/laravel-blade-comments

Add debug comments to your rendered output

177325.5k](/packages/spatie-laravel-blade-comments)[radic/blade-extensions

Laravel package providing additional Blade extensions: foreach (with $loop data like twig), break, continue, set,array (multiline), etc

271321.7k5](/packages/radic-blade-extensions)[chimit/prompt

Manage AI prompts in Blade style.

416.6k](/packages/chimit-prompt)[leitsch/kirby-blade

Enable Laravel Blade Template Engine for Kirby 4 and Kirby 5

219.2k](/packages/leitsch-kirby-blade)[trupedia/laravel-blade-haml

Wraps MtHaml for ease use in Laravel 5 with Blade syntax style

163.8k](/packages/trupedia-laravel-blade-haml)

PHPackages © 2026

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