PHPackages                             thegreyhatt/laravel-sbadmin2 - 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. thegreyhatt/laravel-sbadmin2

ActiveLibrary[Admin Panels](/categories/admin)

thegreyhatt/laravel-sbadmin2
============================

Start Bootstrap Admin 2 Package

v1.0.12(6y ago)150MITCSS

Since Jul 30Pushed 6y ago1 watchersCompare

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

READMEChangelog (10)DependenciesVersions (13)Used By (0)

Start Bootstrap Admin 2 integration with Laravel 5
==================================================

[](#start-bootstrap-admin-2-integration-with-laravel-5)

This package provides an easy way to quickly set up [SB Admin 2](https://startbootstrap.com/themes/sb-admin-2/) with Laravel 5. It has no requirements and dependencies besides Laravel, so you can start building your admin panel immediately. The package just provides a Blade template that you can extend and advanced menu configuration possibilities.

1. Requirements
---------------

[](#1-requirements)

Laravel 5.5.x to 5.8.x PHP &gt;= 7.0.0

2. Installation
---------------

[](#2-installation)

1. Require the package using composer:

    ```
    composer require thegreyhatt/laravel-sbadmin2

    ```
2. Add the service provider to the `providers` in `config/app.php`:

    ```
    Thegreyhatt\LaravelSBAdmin2\ServiceProvider::class
    ```
3. Publish the public assets:

    ```
    php artisan vendor:publish --provider="Thegreyhatt\LaravelSBAdmin2\ServiceProvider" --tag=assets

    ```

3. Updating
-----------

[](#3-updating)

1. To update this package, first update the composer package:

    ```
    composer update thegreyhatt/laravel-sbadmin2

    ```
2. Then, publish the public assets with the `--force` flag to overwrite existing files

    ```
    php artisan vendor:publish --provider="Thegreyhatt\LaravelSBAdmin2\ServiceProvider" --tag=assets --force

    ```

4. Usage
--------

[](#4-usage)

To use the template, create a blade file and extend the layout with `@extends('sbadmin2::page')`. This template yields the following sections:

- `title`: for in the `` tag
- `content_header`: title of the page, above the content
- `content`: all of the page's content
- `css`: extra stylesheets (located in ``)
- `js`: extra javascript (just before ``)

All sections are in fact optional. Your blade template could look like the following.

```
{{-- resources/views/admin/dashboard.blade.php --}}

@extends('sbadmin2::page')

@section('title', 'Dashboard')

@section('content_header')
    Dashboard
@stop

@section('content')
    Welcome to this beautiful admin panel.
@stop

@section('css')

@stop

@section('js')
     console.log('Hi!');
@stop
```

You now just return this view from your controller, as usual.

5. Configuration
----------------

[](#5-configuration)

First, publish the configuration file:

```
php artisan vendor:publish --provider="Thegreyhatt\LaravelSBAdmin2\ServiceProvider" --tag=config

```

Now, edit `config/sbadmin2.php` to configure the title, skin, menu, URLs etc. All configuration options are explained in the comments. However, I want to shed some light on the `menu` configuration.

### 5.1 Menu

[](#51-menu)

You can configure your menu as follows:

```
'menu' => [
    [
    	'text'	=>	'Dashboard',
    	'url'	=>	'/dashboard',
    	'icon'	=>	'fa-tachometer-alt',
    ],
    	'Addons',
    [
    	'text'		=>	'Pages',
    	'icon'		=>	'fa-folder',
    	'submenu'	=>	[
    	'Login Screens:',
    		[
    			'text'	=>	'Login',
    			'url'	=>	'/login',
    		],
    		[
    			'text'	=>	'Register',
    			'url'	=>	'/register',
    		],
    		'Other Pages:',
    		[
    			'text'	=>	'404 Page',
    			'url'	=>	'#'
    		],
    		[
    			'text'	=>	'Blank Page',
    			'url'	=>	'#'
    		],
    	],
    ],
    [
    	'text'	=>	'Charts',
    	'url'	=>	'#',
    	'icon'	=>	'fa-chart-area',
    ],
    [
    	'text'	=>	'Tables',
    	'url'	=>	'#',
    	'icon'	=>	'fa-table',
    ],
],
```

With a single string, you specify a menu header item to separate the items. With an array, you specify a menu item. `text` and `url` are required attributes. The `icon` is optional, if you leave it out. The available icons that you can use are those from [Font Awesome](http://fontawesome.io/icons/). Just specify the name of the icon and it will appear in front of your menu item.

6. Customize views
------------------

[](#6-customize-views)

If you need full control over the provided views, you can publish them:

```
php artisan vendor:publish --provider="Thegreyhatt\LaravelSBAdmin2\ServiceProvider" --tag=views

```

Now, you can edit the views in `resources/views/vendor/sbadmin2`.

7. Issues, Questions and Pull Requests
--------------------------------------

[](#7-issues-questions-and-pull-requests)

You can report issues and ask questions in the [issues section](https://github.com/thegreyhatt/laravel-sbadmin2/issues). Please start your issue with `ISSUE: ` and your question with `QUESTION: `

If you have a question, check the closed issues first. Over time, I've been able to answer quite a few.

To submit a Pull Request, please fork this repository, create a new branch and commit your new/updated code in there. Then open a Pull Request from your new branch. Refer to [this guide](https://help.github.com/articles/about-pull-requests/) for more info.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

12

Last Release

2477d ago

### Community

Maintainers

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

---

Top Contributors

[![ervinbenez](https://avatars.githubusercontent.com/u/10974355?v=4)](https://github.com/ervinbenez "ervinbenez (18 commits)")

### Embed Badge

![Health badge](/badges/thegreyhatt-laravel-sbadmin2/health.svg)

```
[![Health](https://phpackages.com/badges/thegreyhatt-laravel-sbadmin2/health.svg)](https://phpackages.com/packages/thegreyhatt-laravel-sbadmin2)
```

###  Alternatives

[jeroennoten/laravel-adminlte

Easy AdminLTE integration with Laravel

4.0k4.8M43](/packages/jeroennoten-laravel-adminlte)[dmstr/yii2-adminlte-asset

AdminLTE backend theme asset bundle for Yii 2.0 Framework

1.1k1.8M67](/packages/dmstr-yii2-adminlte-asset)[dwij/laraadmin

LaraAdmin is a Open source Laravel Admin Panel / CMS which can be used as Admin Backend, Data Management Tool or CRM boilerplate for Laravel with features like CRUD Generation, Module Manager, Media, Menus, Backups and much more

1.6k68.7k](/packages/dwij-laraadmin)[filament/spatie-laravel-media-library-plugin

Filament support for `spatie/laravel-medialibrary`.

1764.8M125](/packages/filament-spatie-laravel-media-library-plugin)[bezhansalleh/filament-exceptions

A Simple &amp; Beautiful Pluggable Exception Viewer for FilamentPHP's Admin Panel

193195.9k13](/packages/bezhansalleh-filament-exceptions)[filament/infolists

Easily add beautiful read-only infolists to any Livewire component.

1220.8M36](/packages/filament-infolists)

PHPackages © 2026

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