PHPackages                             iamrahul1973/bootstrap-dashboard-skeleton - 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. [Framework](/categories/framework)
4. /
5. iamrahul1973/bootstrap-dashboard-skeleton

ActiveLibrary[Framework](/categories/framework)

iamrahul1973/bootstrap-dashboard-skeleton
=========================================

A starting point for your Laravel Dashboard using Bootstrap

035Blade

Since Feb 23Pushed 4y ago1 watchersCompare

[ Source](https://github.com/iamRahul1973/bootstrap-dashboard-skeleton)[ Packagist](https://packagist.org/packages/iamrahul1973/bootstrap-dashboard-skeleton)[ RSS](/packages/iamrahul1973-bootstrap-dashboard-skeleton/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Bootstrap Dashboard Skeleton for your Laravel App
=================================================

[](#bootstrap-dashboard-skeleton-for-your-laravel-app)

This repo provides you with a simple starting point for your Laravel Dashboard using Bootstrap (v5). It doesn't give you a complete admin backend or anything instead will provide you with templates that you can reuse when building one.

---

I often came across situations where i rewrite the same things over and over again whenever i start a new project, like looking for the sidebar template, defining admin routes in a dedicated file and restricting it with spatie middleware and sort of things like that. So instead of re-inventing the wheel everytime, why don't just create a bootstrap scaffolding which i can re-use in my projects.

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

[](#installation)

Before installing the package itself, our project needs to be setup first in order to use this. So let's do that first.

On a fresh laravel install,

1. Install &amp; Scaffold Authentication. (Laravel Jetstream with livewire)
2. Install [spatie permission](https://spatie.be/docs/laravel-permission/v5/introduction) &amp; configure middlewares
3. Create the role `admin`
4. Install the package

You can install the package via composer:

```
composer require iamrahul1973/bootstrap-dashboard-skeleton
```

Once installed, publish the assets.

```
php artsan vendor:publish --tag=bootstrap-dashboard-skeleton-assets
```

Also, you might want to publish the sidebar view so that you can add more items to the dashboard sidebar

```
php artsan vendor:publish --tag=bootstrap-dashboard-skeleton-menu-items-views
```

Now, you can head over to, `resources/views/vendor/bootstrap-dashboard-skeleton/menu-items.blade.php` and start adding more links there.

Routes
------

[](#routes)

Create a file `admin.php` inside the `routes` folder add your dashboard routes there. These routes are protected by `auth` and spatie's role middleware `role:admin`. (So don't forget to create the admin role first). The routes has the name `admin` and are prefixed by `admin` as well.

Add some routes and run `php artisan routes:list` to check it out.

Login Response
--------------

[](#login-response)

By default, when logged in, **Jetstream** will redirect the user to `/dashboard`. But it would be great if we can redirect the **admin** users to `/admin` instead. To accomplish this, add this to the boot method of your **JetstreamServiceProvider**

```
// Register our login Response
$this->app->singleton(
	\Laravel\Fortify\Contracts\LoginResponse::class,
	\IamRahul1973\Skeleton\Http\Responses\LoginResponse::class
);
```

What our Response class does is simple, It checks for the user role and decides which url to redirect to,

```
$redirectTo = Auth::user()->hasRole('admin') ? '/admin' : config('fortify.home')
```

Flash Messages
--------------

[](#flash-messages)

Typically, after an action is completed, Let's say, update, create or anything, what we do is, flash a status indicator to the session from the controller, check for it's existence in the blade file, and print the message. In order to make this easier, our master layout checks for different types of flash statuses and print the appropriate message.

So all you have to do is flash the status to the session,

```
session()->flash('status', 'success');
```

This will show, **Changes Saved successfully** to the DOM. To know more about alert, check the `` component.

Bootstrap Components
--------------------

[](#bootstrap-components)

> This is still in development. We may need major improvements here.

#### Alert

[](#alert)

```
 // Output : Changes Saved Successfully !
 // Output : Something Went Wrong !
```

It will show the respective bootstrap classes as well. (`alert-success`, `alert-danger`. Default is, `alert-info`)

#### Button

[](#button)

```
Submit
```

Supported Params and default values,

- `$variant = 'primary'`
- `$type = 'submit'`
- `$size = 'sm'`
- `$col = '12'`

#### Card

[](#card)

```

		...

```

- `$title`
- `$status = null // can be success, danger, warning, info`

#### Form Input

[](#form-input)

For types, text, tel, date, number and textarea

```

```

- `$label`
- `$id`
- `$name`
- `$type = 'text' // Can be any of, textarea, tel, date, number`
- `$col = 4`
- `$defaultValue = ''`
- `$error = null`
- `$textareaRows = 4`

You don't have to check for `old()` and preserve the value explicitly. These components will do it automatically.

#### Form Radio

[](#form-radio)

```

```

It takes same params as in **FormInput**. Use `defaultChecked` instead of `defaultValue`

#### Form Select

[](#form-select)

Same as **Form Radio**. Use `defaultSelected` instead of `defaultChecked`

#### Full Width Row

[](#full-width-row)

*(I feel like this is an overkill :-))*

```

	// Content goes here

```

What it does is,

```

	{{ $slot }}

```

#### Modal Form

[](#modal-form)

Bootstrap modal with a form.

- `$modalId`
- `$modalTitle`
- `$formAction`
- `$method`

#### Sidebar Item

[](#sidebar-item)

This component adds a sidebar item to the dashboard's `resources/views/vendor/bootstrap-dashboard-skeleton/menu-items.blade.php`

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Bootstrap Examples](https://getbootstrap.com/docs/5.0/examples/sidebars/)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![iamRahul1973](https://avatars.githubusercontent.com/u/32245591?v=4)](https://github.com/iamRahul1973 "iamRahul1973 (7 commits)")

### Embed Badge

![Health badge](/badges/iamrahul1973-bootstrap-dashboard-skeleton/health.svg)

```
[![Health](https://phpackages.com/badges/iamrahul1973-bootstrap-dashboard-skeleton/health.svg)](https://phpackages.com/packages/iamrahul1973-bootstrap-dashboard-skeleton)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M190](/packages/laravel-telescope)[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M529](/packages/laravel-passport)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M255](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M591](/packages/laravel-prompts)

PHPackages © 2026

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