PHPackages                             oza75/laravel-hubble - 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. oza75/laravel-hubble

ActiveLibrary[Admin Panels](/categories/admin)

oza75/laravel-hubble
====================

Create a beautiful laravel dashboard in no time

v0.1.8(4y ago)12951[1 issues](https://github.com/oza75/laravel-hubble/issues)MITPHPPHP ^7.1|^8.0CI failing

Since Aug 23Pushed 4y agoCompare

[ Source](https://github.com/oza75/laravel-hubble)[ Packagist](https://packagist.org/packages/oza75/laravel-hubble)[ Docs](https://github.com/oza75/laravel-hubble)[ RSS](/packages/oza75-laravel-hubble/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (12)Used By (0)

Laravel Hubble
==============

[](#laravel-hubble)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2e072f96219461e27c006e55f4dbc0e152af2f16420fb32341e32d0a7c6001ee/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f7a6137352f6c61726176656c2d687562626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/oza75/laravel-hubble)[![Build Status](https://camo.githubusercontent.com/6ca39ca6046b2e3be7842f1d12b6fa8991dcdf469e4d52732c1da33056be9b22/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6f7a6137352f6c61726176656c2d687562626c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/oza75/laravel-hubble)[![Quality Score](https://camo.githubusercontent.com/c1fbb948df7bc42dc1b7d6b07f74e216ec12c54d95fea2ed8a813ab969b340b8/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6f7a6137352f6c61726176656c2d687562626c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/oza75/laravel-hubble)[![Total Downloads](https://camo.githubusercontent.com/2ffb99fd2d6eb909d071ccbe5fb49fe3028e7c4c11d931837c209f0840b77f02/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f7a6137352f6c61726176656c2d687562626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/oza75/laravel-hubble)

Build a beautiful dashboard with laravel in no time.

[![Details screen](./docs/images/show-screen.png)](./docs/images/show-screen.png)

Requirements
------------

[](#requirements)

- php : ^7.1
- Laravel : ^6.0

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

[](#installation)

You can install the package via composer:

```
composer require oza75/laravel-hubble
```

Then install laravel-hubble

```
php artisan hubble:install

# Now Add App\Providers\HubbleServiceProvider into providers array in your config/app.php
```

Now go to :  (or  if you use `artisan serve`)

Authentification
----------------

[](#authentification)

Hubble uses the default Laravel authorization gate to check if a user can access to the dashboard. By default, everyone can access to hubble dashboard. You can restrict access by using `authorizesAccess` method on `App\Providers\HubbleServiceProvider`.

```
   // file: app/Providers/HubbleServiceProvider.php

   /**
    * Determines if a given user can access to hubble dashboard.
    * By default every user can access to hubble
    *
    * @param User $user
    * @return bool
    */
    public function authorizesAccess(User $user): bool
    {
        return $user->isAdmin();
    }
```

Usage
-----

[](#usage)

### Resources

[](#resources)

A hubble resource is a simple php class which aims to represent the resource you want to add, namely the different fields, actions, filters, etc. that it has.

#### Create resource

[](#create-resource)

You can create a new resource by running `hubble:resource` command

```
php artisan hubble:resource UserResource
```

This will automatically create a new resource under `app/Hubble` folder

```
