PHPackages                             billyranario/laravel-passport-boilerplate - 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. billyranario/laravel-passport-boilerplate

ActiveLibrary

billyranario/laravel-passport-boilerplate
=========================================

A Laravel package to quickly start a new project with Laravel Passport

v3.1(1y ago)0247↓100%MITPHPPHP &gt;=7.4

Since Sep 9Pushed 8mo ago1 watchersCompare

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

READMEChangelogDependencies (4)Versions (23)Used By (0)

LaravelBoilerPlate by Billy Joel Ranario
========================================

[](#laravelboilerplate-by-billy-joel-ranario)

Description
-----------

[](#description)

`LaravelBoilerPlate` is a Laravel package that provides a set of tools to help you build APIs and web applications faster.

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

[](#requirements)

- **PHP version:** 7.4 and above
- **Laravel version:** 6.0 and above
- **Laravel Passport:** ^12.0
- **Billyranario Prostarter-Kit:** ^1.0

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Contributing](#contributing)
- [License](#license)

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

[](#installation)

```
composer require laravel/passport
composer require billyranario/prostarterkit
php artisan vendor:publish --tag=passport-migrations
php artisan vendor:publish --tag=prostarter-kit

composer require billyranario/laravel-passport-boilerplate
php artisan vendor:publish --tag=billyranario-boilerplate --force

php artisan migrate
```

edit `config/auth.php` file

```
return [
    ..., // Other config
    'guards' => [
        'web' => [
            'driver' => 'session',
            'provider' => 'users',
        ],

        // Add this following code below
        'api' => [
            'driver' => 'passport',
            'provider' => 'users',
        ],
    ],
];
```

```
php artisan passport:keys
php artisan passport:client --password
> psk-password-grant
> [0] users

php artisan passport:client --personal
> psk-personal-access
```

### Creating Superadmin

[](#creating-superadmin)

On your `.env` file, add the following code below. This will provide a default web url for your reset password form page. The `APP_ADMIN_PASS` is the default password for creating an admin user. You can change it to your desired password. If not specified, the default password is `Abc@123456`.

```
APP_WEB_URL=http://localhost:4202
APP_ADMIN_PASS=secret
```

Once everything is setup, you run the artisan command below to create an admin user.

```
php artisan admin:create
php artisan admin:create --super # to create a super admin
```

This will ask you a password to proceed. The password should match to the value you set in the APP\_ADMIN\_PASS in your `.env` file.

### Admin:API Middleware Kernel.php

[](#adminapi-middleware-kernelphp)

Open your `app/Http/Kernel.php` file and insert the following code below.

```
    protected $middlewareAliases = [
        // other aliases....
        'admin.api' => \App\Http\Middleware\Admin\AdminApi::class, //  [UserObserver::class],
    ];
```

### Update Routes

[](#update-routes)

`RouteServiceProvider.php` Insert the followwing

```
    public function boot(): void
    {
        RateLimiter::for('api', function (Request $request) {
            return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip());
        });

        $this->routes(function () {
            Route::middleware('api')
                ->prefix('api')
                ->group(base_path('routes/api.php'));

            // INSERT THIS BLOCK
            Route::middleware('api')
                ->prefix('api/admin')
                ->group(base_path('routes/admin.php'));
            // END

            Route::middleware('web')
                ->group(base_path('routes/web.php'));
        });
    }
```

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

[](#contributing)

Contributions are welcome. Please submit a PR or open an issue.

License
-------

[](#license)

This package is open-source and licensed under the MIT License.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance49

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

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

Recently: every ~75 days

Total

22

Last Release

585d ago

Major Versions

v1.9 → v2.02023-09-09

v2.9 → v3.02024-04-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/61ec9de47de1d1d6f37c01dc5062b79b8301b4664153c312cc58806978002c88?d=identicon)[billyranario](/maintainers/billyranario)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/billyranario-laravel-passport-boilerplate/health.svg)

```
[![Health](https://phpackages.com/badges/billyranario-laravel-passport-boilerplate/health.svg)](https://phpackages.com/packages/billyranario-laravel-passport-boilerplate)
```

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

22.8k69.3k](/packages/grumpydictator-firefly-iii)[unopim/unopim

UnoPim Laravel PIM

9.4k1.8k](/packages/unopim-unopim)[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[juzaweb/cms

Juzaweb CMS is a Content Management System (CMS) developed based on Laravel Framework and web platform whose sole purpose is to make your development workflow simple again. Project develop by Juzaweb

187571.2k](/packages/juzaweb-cms)[jeremy379/laravel-openid-connect

OpenID Connect support to the PHP League's OAuth2 Server. Compatible with Laravel Passport.

55342.3k2](/packages/jeremy379-laravel-openid-connect)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)

PHPackages © 2026

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