PHPackages                             thalles/baseadmin - 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. thalles/baseadmin

ActiveLibrary[Admin Panels](/categories/admin)

thalles/baseadmin
=================

A tool to setup a admin site with auth and user crud, using adminlte!

v1.0.0(6y ago)036MITPHPPHP &gt;=7.2.0

Since Mar 24Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ThallesTeodoro/BaseAdmin)[ Packagist](https://packagist.org/packages/thalles/baseadmin)[ RSS](/packages/thalles-baseadmin/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

BaseAdmin
=========

[](#baseadmin)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d92e16c4a7b103b83fc0469bcfa8fe816778d0597e21b6dd2c2edac09d2d6363/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f5468616c6c657354656f646f726f2f4261736541646d696e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/thalles/baseadmin)[![Total Downloads](https://camo.githubusercontent.com/ebf21a75fa56892eb9b48875c75857df4e7043b560676e8090138a1b1a5de880/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f5468616c6c657354656f646f726f2f4261736541646d696e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/thalles/baseadmin)

A tool to setup an admin site with auth and user crud, using adminlte!
----------------------------------------------------------------------

[](#a-tool-to-setup-an-admin-site-with-auth-and-user-crud-using-adminlte)

### **Requirements**

[](#requirements)

- PHP &gt;= 7.2.5
- laravel/framework ^7.0

---

### **1. Installation**

[](#1-installation)

1. Require the package using composer:

```
composer require thalles/baseadmin

```

2. (Laravel 7+ only) Require the laravel/ui package using composer:

```
composer require laravel/ui

```

### **2. Configuration**

[](#2-configuration)

1. Publish the custom adminlte config file:

```
php artisan vendor:publish --tag=config

```

2. Install the adminlte package using the command (For fresh laravel installations):

```
php artisan adminlte:install

```

- If something goes wrong, you will need to clear the config cache:

```
php artisan config:clear

```

For more informations about Laravel-AdminLTE, read the [documentation](https://github.com/jeroennoten/Laravel-AdminLTE)

3. Configure the UserRole Enum:

    - Criate the Enum

    ```
    php artisan make:enum UserRole

    ```

    - Now, you just need to add the possible values your enum can have as constants.

    ```
