flagstudio/nova-admin-bar

Nova admin bar for laravel.
20,153 15
Install
composer require flagstudio/nova-admin-bar
Latest Version:v0.5.3
PHP:^7.1.3|^8.0
License:MIT
Last Updated:Apr 12, 2023
Links: GitHub  ·  Packagist
Maintainer: flagstudio

Installation

Require this package with composer using the following command:

composer require flagstudio/nova-admin-bar

Configuration

The defaults configuration settings are set in config/adminbar.php. You can publish the config using this command:

php artisan vendor:publish --tag=NovaAdminBarConfig --force

Publish assets:

php artisan vendor:publish --tag=NovaAdminBarAssets --force

The defaults

Usage

To output admin bar use this code in your view:

{!! AdminBar::generate() !!}

To set model for generate edit and view links use this code before generate admin bar:

{{ AdminBar::setModel($post) }}

You can specify resource name for model if it named differently

{{ AdminBar::setResource('PostResource') }}

You can also use set resource without setting model to generate link to resource index page.

The settings for the environment parameters in the admin bar are taken from the git by default, but if this is not possible, then they can be obtained from .env.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

631,580,251 9,707
laravel/framework

The Laravel Framework.

580,311,802 34,925
laravel/tinker

Powerful REPL for the Laravel framework.

489,754,436 7,444
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

404,034,618 608
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

387,976,821 4,658