PHPackages                             therour/laravel-sb-admin-2 - 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. therour/laravel-sb-admin-2

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

therour/laravel-sb-admin-2
==========================

Sb Admin Layout for Laravel

v1.3(6y ago)1611MITHTMLPHP ^7.1.13

Since Jun 28Pushed 6y agoCompare

[ Source](https://github.com/therour/laravel-sb-admin-2)[ Packagist](https://packagist.org/packages/therour/laravel-sb-admin-2)[ RSS](/packages/therour-laravel-sb-admin-2/feed)WikiDiscussions master Synced yesterday

READMEChangelog (6)Dependencies (3)Versions (7)Used By (0)

Laravel Sb Admin 2 Theme
========================

[](#laravel-sb-admin-2-theme)

original theme [link](https://startbootstrap.com/themes/sb-admin-2/)

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

[](#installation)

1. Install the package via composer

```
composer require therour/laravel-sb-admin

```

2. **(Laravel 5.5 below only)** add the provider to the config file `config/app.php`

```
/*
* Package Service Providers...
*/
...
Therour\SbAdmin2\Providers\SbAdmin2ServiceProvider::class,
...
```

3. Install views. a. Install by scaffold the `make:auth`-like views using (nb: this will publish the config file, and public asset files) ```
    php artisan sb-admin:scaffold

    ```

    b. Publish the resource files, (this will publish resource files in `resources/sb-admin-2` folders, and publish the config file) ```
    php artisan vendor:publish --provider="Therour\SbAdmin2\Providers\SbAdmin2ServiceProvider"
    // if you managed to publish the compiled assets, run this
    php artisan sb-admin:publish-assets

    ```
4. (optional) Run the demo routes, by set `demo => true` in your `config/sb-admin-2.php` config file, Then you can access `/demos` routes.

Special Usage
-------------

[](#special-usage)

### Define global variables in view

[](#define-global-variables-in-view)

you can set variable in first view by using blade directive `@setOption`

```
// home.blade.php
@setOption('title', 'Home')

// sb-admin-2/views/layouts/partials/topbar.blade.php
{{ $sbOptions->title }}

```

### Create Sidebarmenu

[](#create-sidebarmenu)

You can define your sidebar layout by add configuration in `config/sb-admin-2.php`

```
'sidebar-menu' => 'layouts.menu' // set to layouts/menu.blade.php
```

to create the menu itself you can use some blade directives example is in [sidebar-menu.blade.php](https://github.com/therour/laravel-sb-admin-2/blob/master/resources/views/layouts/partials/sidebar-menu.blade.php)

```
@sidebarHeading('Heading 1') // output Heading 1

@sidebarMenu([ // Create Menu
    'title' => 'Application',
    'icon' => 'fas fa-fw fa-cubes',
    'url' => '#',
    // 'active' => '/' // define your url pattern to match for giving active class
    // by default is current url == menu's url will set the menu's class active.
])

@sidebarDropdown([ // Create Dropdown menu
    'title' => 'Dropdowns',
    'icon' => 'fas fa-fw fa-cubes',
    'active' => '/dropdowns/*' // same as menu's active url pattern
    ], function ($dropdown) {
        $dropdown->heading('Heading:'); // add heading inside dropdown
        $dropdown->menu(['title' => 'Sub Menu 1', 'url' => url('dropdowns/1')]);
        $dropdown->menu(['title' => 'Sub Menu 2', 'url' => url('dropdowns/2')]);
        $dropdown->menu(['title' => 'Sub Menu 3', 'url' => url('dropdowns/3')]);
        $dropdown->menu(['title' => 'Sub Menu 4', 'url' => url('dropdowns/4')]);
    }
)
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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 ~29 days

Recently: every ~37 days

Total

6

Last Release

2363d ago

Major Versions

v0.1.1 → v1.02019-06-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/86f52784d71b1c9dd763012ac0c0f5d14e5c45aa2fa79676d3261a24ac813da2?d=identicon)[therour](/maintainers/therour)

---

Top Contributors

[![therour](https://avatars.githubusercontent.com/u/16388470?v=4)](https://github.com/therour "therour (14 commits)")

### Embed Badge

![Health badge](/badges/therour-laravel-sb-admin-2/health.svg)

```
[![Health](https://phpackages.com/badges/therour-laravel-sb-admin-2/health.svg)](https://phpackages.com/packages/therour-laravel-sb-admin-2)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.2k438.5k29](/packages/tightenco-jigsaw)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

703141.0k7](/packages/tallstackui-tallstackui)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[spatie/laravel-export

Create a static site bundle from a Laravel app

646127.9k5](/packages/spatie-laravel-export)[laravellux/html

HTML and Form Builders for the Laravel Framework

35239.2k3](/packages/laravellux-html)

PHPackages © 2026

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