PHPackages                             weblebby/framework - 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. weblebby/framework

ActiveLibrary[Admin Panels](/categories/admin)

weblebby/framework
==================

Laravel admin panel.

v0.0.2(2y ago)08MITJavaScriptPHP ^8.1

Since Mar 6Pushed 2y ago1 watchersCompare

[ Source](https://github.com/weblebby/framework)[ Packagist](https://packagist.org/packages/weblebby/framework)[ RSS](/packages/weblebby-framework/feed)WikiDiscussions main Synced 1mo ago

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

[![weblebby-panel](https://private-user-images.githubusercontent.com/18721207/311457158-59aae33a-d472-4b85-8feb-bbd7a0738950.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzU3MzU3NjQsIm5iZiI6MTc3NTczNTQ2NCwicGF0aCI6Ii8xODcyMTIwNy8zMTE0NTcxNTgtNTlhYWUzM2EtZDQ3Mi00Yjg1LThmZWItYmJkN2EwNzM4OTUwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA0MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNDA5VDExNTEwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI4MmVmZmZhMDQzMzg0MzgyZTE3NTk5MGY2YjdlN2IwMzI3YTk3OTE4ODg3NjFhMzU3MTdlOWI2ZTAzYzc4MDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Q3TtHxkR3K4JK-QS-CFwOE-3LgH3w6xx0K6IEBCh6K0)](https://private-user-images.githubusercontent.com/18721207/311457158-59aae33a-d472-4b85-8feb-bbd7a0738950.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzU3MzU3NjQsIm5iZiI6MTc3NTczNTQ2NCwicGF0aCI6Ii8xODcyMTIwNy8zMTE0NTcxNTgtNTlhYWUzM2EtZDQ3Mi00Yjg1LThmZWItYmJkN2EwNzM4OTUwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA0MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNDA5VDExNTEwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI4MmVmZmZhMDQzMzg0MzgyZTE3NTk5MGY2YjdlN2IwMzI3YTk3OTE4ODg3NjFhMzU3MTdlOWI2ZTAzYzc4MDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Q3TtHxkR3K4JK-QS-CFwOE-3LgH3w6xx0K6IEBCh6K0)Important Notes
===============

[](#important-notes)

Weblebby Framework requires PHP 8.2+ and Laravel 10+.

Also, this framework may not work properly when added to existing projects. It is recommended to be used for new projects.

Installation
============

[](#installation)

```
composer require weblebby/framework

```

After including the Weblebby Framework in your library, there are a few more things to do. Let's see what should be done step by step.

Usage
=====

[](#usage)

AppServiceProvider
------------------

[](#appserviceprovider)

Firstly, let's create a new panel in a service provider. **We can use AppServiceProvider for this.**

```
use App\Http\Middleware\AdminPanel;
use Weblebby\Framework\Facades\Panel;
use Weblebby\Framework\Support\Features;
```

```
/**
 * Create a new panel named "admin".
 */
Panel::create('admin')
    ->prefix('admin')
    ->as('admin::')
    ->middleware(AdminPanel::class) // We will create this middleware later.
    ->features([
        /**
         * You can delete the features you want.
         */
        Features::users(),
        Features::roles(),
        Features::registration(),
        Features::preferences(),
        Features::navigations(),
        Features::extensions(),
        Features::themes(),
        Features::appearance(),
        Features::setup(),
    ]);

/**
 * Set as main panel.
 */
Panel::setMainPanel('admin');
```

User model
----------

[](#user-model)

In the User model, instead of using the default Authenticatable class, we should use the class provided by the Weblebby Framework.

```
