PHPackages                             chrisbraybrooke/laravel-ecommerce - 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. [Framework](/categories/framework)
4. /
5. chrisbraybrooke/laravel-ecommerce

AbandonedLibrary[Framework](/categories/framework)

chrisbraybrooke/laravel-ecommerce
=================================

A laravel ecommerce solution.

1.0.02(7y ago)3208[14 PRs](https://github.com/ChrisBraybrooke/Laravel-ECommerce/pulls)MITJavaScriptPHP &gt;=5.4.0

Since Mar 14Pushed 2y ago3 watchersCompare

[ Source](https://github.com/ChrisBraybrooke/Laravel-ECommerce)[ Packagist](https://packagist.org/packages/chrisbraybrooke/laravel-ecommerce)[ RSS](/packages/chrisbraybrooke-laravel-ecommerce/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (13)Versions (140)Used By (0)

Laravel ECommerce Package
=========================

[](#laravel-ecommerce-package)

Laravel Setup
-------------

[](#laravel-setup)

```
laravel new laravel-shop
php artisan make:auth
```

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

[](#installation)

Only installation on a fresh Laravel app is reccomended:

```
composer require chrisbraybrooke/laravel-ecommerce
```

Setup:
------

[](#setup)

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

php artisan vendor:publish --tag=ecommerce-config
php artisan vendor:publish --tag=ecommerce-migrations
php artisan vendor:publish --tag=ecommerce-admin

php artisan migrate
```

Roles And Permissions:
----------------------

[](#roles-and-permissions)

```
php artisan vendor:publish --tag=ecommerce-seeds
```

In `database/seeds/DatabaseSeeder.php` add the RolesAndPermissionsSeeder class

```
use Illuminate\Database\Seeder;

class DatabaseSeeder extends Seeder
{
    /**
     * Seed the application's database.
     *
     * @return void
     */
    public function run()
    {
        // $this->call(UsersTableSeeder::class);
        $this->call(RolesAndPermissionsSeeder::class)
    }
}
```

And then seed the database

```
php artisan migrate --seed
```

Media:
------

[](#media)

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

After publishing the config files, be sure to change the media class to `ChrisBraybrooke\ECommerce\Models\Media`

```
/*
 * The class name of the media model that should be used.
 */
 'media_model' => ChrisBraybrooke\ECommerce\Models\Media::class,
```

Users:
------

[](#users)

To ensure all roles / permissions work correctly, you will need to edit your `App/User.php` class so that it extends the Laravel Ecommerce User class.

```
use Illuminate\Notifications\Notifiable;
use ChrisBraybrooke\ECommerce\Models\User as Authenticatable;

class User extends Authenticatable
{
    use Notifiable;
}
```

You will then want to create your first admin user.

```
php artisan tinker

$user = new App\User
$user->name = 'Your Name'
$user->email = 'youremail@here.com'
$user->password = bcrypt('password')

$user->save()

$user->assignRole('admin')
```

We use Laravel Passport under the hood, so make sure you install passport to generate the relevent keys etc.

```
php artisan passport:install
```

You then need to add this middleware to your `app/Http/Kernel.php` web group. Make sure it is added after the `\App\Http\Middleware\EncryptCookies::class` middleware.

```
'web' => [
    // Other middleware...
    \Laravel\Passport\Http\Middleware\CreateFreshApiToken::class,
],
```

Finally in your `config/auth.php` config file, you should set the API driver to passport.

```
'guards' => [
    'web' => [
        'driver' => 'session',
        'provider' => 'users',
    ],

    'api' => [
        'driver' => 'passport',
        'provider' => 'users',
    ],
],
```

Updating the version
--------------------

[](#updating-the-version)

It's a good idea to keep the version numbering up-to-date with any minor and major changes that are made to avoid conflicts with older code. This package uses seperate version numbers for its API and SPA functions.

The API version number can be found and changed under `src/ECommerceServiceProvider.php`And the SPA version number can be found and changed under `resources/assets/admin-spa/admin.js` (this one will require compiling).

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity76

Established project with proven stability

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

Recently: every ~265 days

Total

122

Last Release

1457d ago

Major Versions

0.1.02 → 1.0.022019-05-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/954f04d21211c33ec6dd750169be63b054d65d2fba406a0ad523b43cda015b25?d=identicon)[ChrisBraybrooke](/maintainers/ChrisBraybrooke)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/chrisbraybrooke-laravel-ecommerce/health.svg)

```
[![Health](https://phpackages.com/badges/chrisbraybrooke-laravel-ecommerce/health.svg)](https://phpackages.com/packages/chrisbraybrooke-laravel-ecommerce)
```

###  Alternatives

[nasirkhan/laravel-starter

A CMS like modular Laravel starter project.

1.4k2.7k](/packages/nasirkhan-laravel-starter)[unopim/unopim

UnoPim Laravel PIM

10.5k2.2k](/packages/unopim-unopim)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1232.2k16](/packages/fleetbase-core-api)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[typicms/base

A modular multilingual CMS built with Laravel, enabling developers to manage structured content like pages, news, events, and more.

1.6k20.4k](/packages/typicms-base)[api-platform/laravel

API Platform support for Laravel

59156.3k11](/packages/api-platform-laravel)

PHPackages © 2026

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