PHPackages                             oro-vietnam/nova-page - 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. [Admin Panels](/categories/admin)
4. /
5. oro-vietnam/nova-page

ActiveLibrary[Admin Panels](/categories/admin)

oro-vietnam/nova-page
=====================

Static pages content management for Laravel Nova

1.0(1y ago)0161MITPHP ^8.0

Since May 13Pushed 1y agoCompare

[ Source](https://github.com/ORO-VietNam/nova-page)[ Packagist](https://packagist.org/packages/oro-vietnam/nova-page)[ GitHub Sponsors](https://github.com/whitecube)[ RSS](/packages/oro-vietnam-nova-page/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

Nova Page
=========

[](#nova-page)

[![](https://camo.githubusercontent.com/b8bc638d1baff8843747ca5073f1106dfaa60ea459a94cd67cf7bce14074643e/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f636f6d2f7768697465637562652f6e6f76612d706167652e7376673f7374796c653d666c6174)](https://travis-ci.com/whitecube/nova-page)[![](https://camo.githubusercontent.com/34162b5ceee0e889b411e0f2d6e6aead5ea50ef02b81f79265da5b0d537a1300/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7768697465637562652f6e6f76612d706167652e7376673f7374796c653d666c6174)](https://camo.githubusercontent.com/34162b5ceee0e889b411e0f2d6e6aead5ea50ef02b81f79265da5b0d537a1300/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7768697465637562652f6e6f76612d706167652e7376673f7374796c653d666c6174)[![Maintainability](https://camo.githubusercontent.com/8fe589a55a42019e7497692a7a668441146abaa1a48c4248e7c3256af4b7ce96/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f36376238303936303161396438386264326331342f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/whitecube/nova-page/maintainability)[![Test Coverage](https://camo.githubusercontent.com/fce3ce5d785303bcaa99fe8264957d53d1c5e9f4a873593a892d3dc1961fc8b4/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f36376238303936303161396438386264326331342f746573745f636f766572616765)](https://codeclimate.com/github/whitecube/nova-page/test_coverage)[![](https://camo.githubusercontent.com/25949439ccbb2fedfeb47e34bf2b8015266c174dc8f8d4db262d1044142d80c5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7768697465637562652f6e6f76612d706167652e7376673f636f6c6f72423d677265656e267374796c653d666c6174)](https://packagist.org/packages/whitecube/nova-page)[![](https://camo.githubusercontent.com/eee58cbccdfb122d7a2ebd4201f532f7868bf356bc53e993fad05f0b2836fb9a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7768697465637562652f6e6f76612d706167652e7376673f7374796c653d666c6174)](https://github.com/whitecube/nova-page/blob/master/LICENSE)

Ever wanted to expose static content of an "About" page as editable fields in your app's administration without having to create specific models &amp; migrations? Using this package, you'll be able to do so. By default, it will store the content in JSON files in the application's `resources/lang` directory, making them available for version control. A database source is also available.

This package adds basic **flat-file CMS features** to Laravel Nova in a breeze using template configurations as if it were administrable Laravel Models, meaning it allows the usage of all the available Laravel Nova fields and tools.

Quick start
-----------

[](#quick-start)

Here's a very condensed guide to get you started asap. For more details, examples and advanced features, take a look at [the full docs](https://whitecube.github.io/nova-page).

### Install

[](#install)

LaravelNovanova-page&lt; 9.x&lt; 4.0&lt; 0.3.09.x4.0^ 0.3.0```
composer require whitecube/nova-page
```

Then register the Nova tool in `app/Providers/NovaServiceProvider.php`:

```
public function tools()
{
    return [
        \Whitecube\NovaPage\NovaPageTool::make(),
    ];
}
```

### Usage

[](#usage)

In order to assign fields (and even cards!) to a page's edition form, we'll have to create a `Template` class and register this class on one or more routes. You'll see, it's quite easy.

#### Creating Templates

[](#creating-templates)

```
php artisan make:template About
```

```
namespace App\Nova\Templates;

use Illuminate\Http\Request;
use Laravel\Nova\Fields\Text;
use Whitecube\NovaPage\Pages\Template;

class About extends Template
{

    /**
     * Get the fields displayed by the resource.
     *
     * @param  \Laravel\Nova\Http\Requests\NovaRequest $request
     * @return array
     */
    public function fields(NovaRequest $request)
    {
        return [
            Text::make('Title of the page', 'title')
        ];
    }

    /**
     * Get the cards available for the request.
     *
     * @param  \Laravel\Nova\Http\Requests\NovaRequest $request
     * @return array
     */
    public function cards(NovaRequest $request)
    {
        return [];
    }
}
```

```
Route::get('/about-me', 'AboutController@show')
    ->template(\App\Nova\Templates\About::class)
    ->name('about');
```

Fields and cards definition is exactly the same as regular [Laravel Nova Resources](https://nova.laravel.com/docs/1.0/resources/fields.html#defining-fields).

#### Loading the data in your pages

[](#loading-the-data-in-your-pages)

The easiest way is to use middleware.

In the `App\Http\Kernel` file:

```
protected $middlewareGroups = [
    'web' => [
        'loadNovaPage',
    ],
};

// ...

protected $routeMiddleware = [
    'loadNovaPage' => \Whitecube\NovaPage\Http\Middleware\LoadPageForCurrentRoute::class,
];
```

#### Accessing the data in your views

[](#accessing-the-data-in-your-views)

Retrieving the page's static values in your application's blade templates is possible with the `get` directive or using the `Page` facade.

```
@get('title')

// or

{{ Page::get('title') }}
```

Please note it is also possible to define [Option Templates](https://whitecube.github.io/nova-page/#/?id=option-templates) for repeated data, which can be accessed using:

```
@option('footer.copyright')

// or

{{ Page::option('footer')->copyright }}
```

💖 Sponsorships
--------------

[](#-sponsorships)

If you are reliant on this package in your production applications, consider [sponsoring us](https://github.com/sponsors/whitecube)! It is the best way to help us keep doing what we love to do: making great open source software.

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

[](#contributing)

Feel free to suggest changes, ask for new features or fix bugs yourself. We're sure there are still a lot of improvements that could be made and we would be very happy to merge useful pull requests.

Thanks!

Made with ❤️ for open source
----------------------------

[](#made-with-️-for-open-source)

At [Whitecube](https://www.whitecube.be) we use a lot of open source software as part of our daily work. So when we have an opportunity to give something back, we're super excited! We hope you will enjoy this small contribution from us and would love to [hear from you](https://twitter.com/whitecube_be) if you find it useful in your projects.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance49

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Unknown

Total

1

Last Release

369d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/105bf29c2412c75d57c97317e4bf1b241e8d9f1727041f2ed0e7d4c2c0b65d02?d=identicon)[khoa-le](/maintainers/khoa-le)

---

Top Contributors

[![voidgraphics](https://avatars.githubusercontent.com/u/9298484?v=4)](https://github.com/voidgraphics "voidgraphics (109 commits)")[![toonvandenbos](https://avatars.githubusercontent.com/u/5635557?v=4)](https://github.com/toonvandenbos "toonvandenbos (105 commits)")[![FlorenceRandaxhe](https://avatars.githubusercontent.com/u/43472197?v=4)](https://github.com/FlorenceRandaxhe "FlorenceRandaxhe (10 commits)")[![raphcollective](https://avatars.githubusercontent.com/u/45772248?v=4)](https://github.com/raphcollective "raphcollective (6 commits)")[![abclive](https://avatars.githubusercontent.com/u/5982073?v=4)](https://github.com/abclive "abclive (5 commits)")[![BenSampo](https://avatars.githubusercontent.com/u/1488068?v=4)](https://github.com/BenSampo "BenSampo (4 commits)")[![zippoxer](https://avatars.githubusercontent.com/u/859015?v=4)](https://github.com/zippoxer "zippoxer (3 commits)")[![GarethSomers](https://avatars.githubusercontent.com/u/5942607?v=4)](https://github.com/GarethSomers "GarethSomers (2 commits)")[![martijngastkemper](https://avatars.githubusercontent.com/u/250662?v=4)](https://github.com/martijngastkemper "martijngastkemper (2 commits)")[![CaddyDz](https://avatars.githubusercontent.com/u/13698160?v=4)](https://github.com/CaddyDz "CaddyDz (2 commits)")[![wimurk](https://avatars.githubusercontent.com/u/14072334?v=4)](https://github.com/wimurk "wimurk (2 commits)")[![AbdullahGhanem](https://avatars.githubusercontent.com/u/5055892?v=4)](https://github.com/AbdullahGhanem "AbdullahGhanem (2 commits)")[![duchenean](https://avatars.githubusercontent.com/u/9050997?v=4)](https://github.com/duchenean "duchenean (1 commits)")[![shalawani](https://avatars.githubusercontent.com/u/7045417?v=4)](https://github.com/shalawani "shalawani (1 commits)")[![thecaliskan](https://avatars.githubusercontent.com/u/13554944?v=4)](https://github.com/thecaliskan "thecaliskan (1 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![jasonmccuen](https://avatars.githubusercontent.com/u/13731423?v=4)](https://github.com/jasonmccuen "jasonmccuen (1 commits)")[![khoa-le](https://avatars.githubusercontent.com/u/1911347?v=4)](https://github.com/khoa-le "khoa-le (1 commits)")[![yhbyun](https://avatars.githubusercontent.com/u/946080?v=4)](https://github.com/yhbyun "yhbyun (1 commits)")[![miclf](https://avatars.githubusercontent.com/u/3188746?v=4)](https://github.com/miclf "miclf (1 commits)")

---

Tags

laravelpagecontentcmswysiwygnovaflatfile

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/oro-vietnam-nova-page/health.svg)

```
[![Health](https://phpackages.com/badges/oro-vietnam-nova-page/health.svg)](https://phpackages.com/packages/oro-vietnam-nova-page)
```

###  Alternatives

[whitecube/nova-page

Static pages content management for Laravel Nova

23995.2k1](/packages/whitecube-nova-page)[optimistdigital/nova-page-manager

Page(s) and region(s) manager for Laravel Nova.

17988.5k](/packages/optimistdigital-nova-page-manager)[khalin/nova-link-field

A Laravel Nova Link field.

31562.2k2](/packages/khalin-nova-link-field)

PHPackages © 2026

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