PHPackages                             dkpankaj1/adminkit - 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. dkpankaj1/adminkit

ActiveLibrary[Admin Panels](/categories/admin)

dkpankaj1/adminkit
==================

A Laravel package for an admin dashboard kit with authentication, datatables, and UI components.

v2.1.1(1mo ago)380MITJavaScriptPHP ^8.1|^8.2

Since Mar 2Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/dkpankaj1/laraveladminkit)[ Packagist](https://packagist.org/packages/dkpankaj1/adminkit)[ RSS](/packages/dkpankaj1-adminkit/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (4)Versions (17)Used By (0)

AdminKit for Laravel
====================

[](#adminkit-for-laravel)

Overview
--------

[](#overview)

AdminKit for Laravel provides a seamless way to integrate a customizable admin interface into your Laravel application. The `install:adminkit` Artisan command allows you to choose between two themes (**Kadso** or **Drezoc**) and automatically copies controllers, middleware, requests, view components, models, support files, views, assets, migrations, language files, and routes to your project.

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

[](#requirements)

- **Laravel**: 10.0 or higher
- **PHP**: 8.0 or higher
- **Dependencies**: Composer
- **File System**: Write permissions for `app`, `resources`, `public`, `database`, and `lang` directories

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

[](#installation)

Follow these steps to install and configure AdminKit in your Laravel project:

### Step 1: Install via Composer

[](#step-1-install-via-composer)

Run the following command to install the package:

```
composer require dkpankaj1/adminkit --dev
```

### Step 2: Register Service Provider

[](#step-2-register-service-provider)

Add the AdminKit service provider to `bootstrap/providers.php`:

```
Dkpankaj1\AdminKit\AdminKitServiceProvider::class
```

### Step 3: Run the Installation Command

[](#step-3-run-the-installation-command)

Execute the Artisan command to install AdminKit:

```
php artisan install:adminkit
```

This command will:

1. Prompt you to select a theme (**Kadso** or **Drezoc**).
2. Copy the following core files to your project:
    - **Controllers** to `app/Http/Controllers`
    - **Middleware** to `app/Http/Middleware`
    - **Requests** to `app/Http/Requests`
    - **View Components** to `app/View/Components`
    - **Models** to `app/Models`
    - **Support Files** to `app/Support`
    - **Views** to `resources/views`
    - **Migrations** to `database/migrations`
    - **Language Files** to `lang`
    - **Routes** to `routes/admin.php`
3. Copy theme-specific views and assets to `resources/views` and `public/assets`, respectively.
4. Prompt for confirmation before overwriting existing files or directories.

Run the command with verbose output to debug issues:

```
php artisan install:adminkit -v
```

### Step 4: Run Migrations (Optional)

[](#step-4-run-migrations-optional)

If migrations are included in the theme, run the following command to apply them:

```
php artisan migrate
```

### Step 5: Register Middleware

[](#step-5-register-middleware)

Update `bootstrap/app.php` to include the admin middleware:

```
->withMiddleware(function (Middleware $middleware) {
    $middleware->alias(['admin' => \App\Http\Middleware\AdminAccess::class]);
})
```

### Step 6: Register Routes

[](#step-6-register-routes)

Modify `bootstrap/app.php` to include the admin routes:

```
->withRouting(
    web: [__DIR__ . '/../routes/web.php', __DIR__ . '/../routes/admin.php'],
    commands: __DIR__ . '/../routes/console.php'
)
```

File Structure
--------------

[](#file-structure)

After running the `install:adminkit` command, your project will include the following structure for the selected theme:

```
LaravelProject/
├── app/
│   ├── Http/
│   │   ├── Controllers/         # Admin controllers
│   │   ├── Middleware/          # Admin middleware
│   │   ├── Requests/            # Form request classes
│   ├── View/
│   │   ├── Components/          # Blade view components
│   ├── Models/                  # Admin-related models
│   ├── Support/                 # Support classes
├── resources/
│   ├── views/                   # Blade templates for the selected theme
├── public/
│   ├── assets/                  # Theme assets (CSS, JS, images)
├── database/
│   ├── migrations/              # Database migrations
├── lang/
│   ├── en/                      # English language files
│   ├── es/                      # Other language files (if included)
├── routes/
│   ├── admin.php                # Admin routes

```

Configuration
-------------

[](#configuration)

### Theme Selection

[](#theme-selection)

The `install:adminkit` command prompts you to choose between the **Kadso** or **Drezoc** theme. Each theme includes specific views and assets tailored to its design.

### Overwrite Protection

[](#overwrite-protection)

If destination files or directories already exist, the command will prompt for confirmation before overwriting. To skip overwriting, answer "no" to the prompt, and the command will continue with the remaining files.

### Language Files

[](#language-files)

Language files are copied to the `lang` directory (e.g., `lang/en/messages.php`). Ensure your application’s locale is set in `config/app.php` (e.g., `'locale' => 'en'`) to use the appropriate language.

### Migrations

[](#migrations)

Migration files are copied to `database/migrations`. Ensure that migration files have unique timestamps or filenames to avoid conflicts. Verify this by checking the `database/migrations` directory after installation.

Notes
-----

[](#notes)

- **Permissions**: Ensure write permissions for the `app`, `resources`, `public`, `database`, and `lang` directories. Use the following command if needed:

    ```
    chmod -R 775 storage/ bootstrap/ public/ database/ lang/
    ```

    On Linux/Mac, you may also need to set the correct owner:

    ```
    chown -R www-data:www-data .
    ```

    (Replace `www-data` with your web server user.)
- **Customization**: You can extend or modify the `InstallAdminKit.php` command to customize the installation process for your project.
- **Locale Configuration**: Verify that your application’s locale matches the language files provided by the theme.
- **Verbose Output**: Use the `-v` flag with the `install:adminkit` command to see detailed progress and identify potential issues.

Troubleshooting
---------------

[](#troubleshooting)

If you encounter issues during installation, try the following:

- **Command Hangs or Fails**:

    - Run with verbose output: `php artisan install:adminkit -v`.
    - Check if source stub directories exist in the package (`vendor/dkpankaj1/adminkit/stubs`).
    - Ensure sufficient disk space on the server.
- **File Conflicts**:

    - The command prompts before overwriting existing files. Back up conflicting files before proceeding.
    - Check for existing files in `app`, `resources`, `public`, `database`, and `lang` directories.
- **Permission Issues**:

    - Ensure directories are writable: `chmod -R 775 storage/ bootstrap/ public/ database/ lang/`.
    - Verify the correct ownership for your web server user.
- **Migration Issues**:

    - Verify that migration files have unique timestamps: `ls database/migrations`.
    - Run `php artisan migrate:status` to check for conflicts.
- **Cache Issues**:

    - Clear configuration and cache: ```
        php artisan config:clear
        php artisan cache:clear
        ```

License
-------

[](#license)

AdminKit for Laravel is open-source software licensed under the [MIT License](https://opensource.org/licenses/MIT). You are free to use, modify, and distribute it as needed.

Support
-------

[](#support)

For issues, questions, or contributions, please visit the [GitHub repository](https://github.com/dkpankaj1/adminkit) or contact the maintainer.

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance89

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Total

16

Last Release

56d ago

Major Versions

v0.0.1 → v1.0.12025-03-02

1.0.9 → 2.0.02025-05-27

PHP version history (2 changes)v1.0.0PHP ^8.2

v1.0.3PHP ^8.1|^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/34406638?v=4)[Dipankar kumar pankaj](/maintainers/dkpankaj1)[@dkpankaj1](https://github.com/dkpankaj1)

---

Top Contributors

[![dkpankaj1](https://avatars.githubusercontent.com/u/34406638?v=4)](https://github.com/dkpankaj1 "dkpankaj1 (28 commits)")

### Embed Badge

![Health badge](/badges/dkpankaj1-adminkit/health.svg)

```
[![Health](https://phpackages.com/badges/dkpankaj1-adminkit/health.svg)](https://phpackages.com/packages/dkpankaj1-adminkit)
```

###  Alternatives

[backpack/crud

Quickly build admin interfaces using Laravel, Bootstrap and JavaScript.

3.4k3.7M222](/packages/backpack-crud)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3416.9k](/packages/duncanmcclean-statamic-cargo)

PHPackages © 2026

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