PHPackages                             guardsmanpanda/larabear - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. guardsmanpanda/larabear

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

guardsmanpanda/larabear
=======================

Make Project Strong Like Bear.

v2.0.0(1y ago)511.2k4MITPHPPHP ^8.2

Since May 10Pushed 1y ago2 watchersCompare

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

READMEChangelog (10)Dependencies (10)Versions (18)Used By (0)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b0d92d2da4be700720e388d47eac63a3033594990af5abd377d96afb1dacfdc8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6775617264736d616e70616e64612f6c617261626561722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/guardsmanpanda/larabear)[![Total Downloads](https://camo.githubusercontent.com/ea8af9ec46adc1d1ae998b0880bd867a5f4dd305d574d3dfec3d3b47c1998377/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6775617264736d616e70616e64612f6c617261626561722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/guardsmanpanda/larabear)

Larabear
========

[](#larabear)

Make Laravel strong like bear!

---

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

[](#installation)

You can install the package via composer:

### Step 1

[](#step-1)

```
composer require guardsmanpanda/larabear
```

### Step 2

[](#step-2)

Add the Service provider to config/app.php:

```
    'providers' => [
        Illuminate\Auth\AuthServiceProvider::class,
        Illuminate\Broadcasting\BroadcastServiceProvider::class,
        ...
        \GuardsmanPanda\Larabear\Infrastructure\Laravel\Provider\BearServiceProvider::class,
    ],
```

### Step 3

[](#step-3)

Publish the required config file:

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

### Step 4

[](#step-4)

To test and verify that the system is configured properly you can run

```
php artisan bear
```

### Step 5

[](#step-5)

To enable the majority of the functionality make sure that the "BearInitiateMiddleware" is enabled on all routes

```
final class HttpKernel extends Kernel {
    // These middlewares are run during every request to your application.
    protected $middleware = [
        \GuardsmanPanda\Larabear\Infrastructure\Http\Middleware\BearInitiateMiddleware::class,
        OtherMiddleware::class,
    ];
```

### Step 6

[](#step-6)

To filter console output from "php artisan" changed main artisan file to:

```
#!/usr/bin/env php
