2017 © Pedro Peláez
 

library redminportal

RedminPortal is a backend administrating tool for Content Management and Ecommerce sites.

image

redooor/redminportal

RedminPortal is a backend administrating tool for Content Management and Ecommerce sites.

  • Tuesday, February 14, 2017
  • by kongnir
  • Repository
  • 8 Watchers
  • 37 Stars
  • 532 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 12 Forks
  • 15 Open issues
  • 22 Versions
  • 1 % Grown

The README.md

, (*1)

RedminPortal by Redooor

A Laravel 5 package as a backend administrating tool for Content Management and Ecommerce sites. Gives you ability to add, edit and remove category, product, promotions and many more. Provides User Interface for administrating users and groups., (*2)

RedminPortal currently supports Laravel 5.8. See Compatibility., (*3)

Table of Content

  1. Compatibility
  2. Models and Features
  3. Installation guide for Users
  4. Installation guide for Contributors
  5. Testing
  6. Versioning
  7. Contributing
  8. Creator
  9. License
  10. External Libraries Used
  11. Change log
  12. Upgrade Guide

Compatibility

Laravel RedminPortal Branch Status
5.8 0.58.x v0.58 Active
5.1 0.3.x v0.3 Inactive
5.0 0.2.x v0.2 Inactive
4.2 0.1.x v0.1 Inactive

The focus of the development will be on branch 0.58, which supports the Laravel version 5.8., (*4)

Development for branch v0.1, 0.2, 0.3 and 0.4 has stopped. Please upgrade to later versions., (*5)

Important note

Version >=0.3.2 and >=0.2.2 may break your front-end due to the change in UserPricelist. Refer to UPGRADE.md for the upgrading instructions., (*6)

Version 0.58 is backward compatible to Version 0.3., (*7)

Version 0.3 is backward compatible to Version 0.2., (*8)

Version 0.3 and 0.2 are SOMEWHAT backward compatible to Version 0.1. Refer to UPGRADE.md., (*9)

Upgrading from v0.1?, (*10)

We've included a few database migrations to upgrade the database to support v0.2/v0.3/v0.58. However, use this at your own risk. The upgrade scripts were not thoroughly tested and it may not be complete. If you find something missing, please report to us using the issue ticket. We welcome any contribution too., (*11)

Refer to UPGRADE.md for the upgrading instructions., (*12)

Models and Features

User Management

  • User
  • Group
  • Mailinglist

Content Management

  • Announcement
  • Page
  • Portfolio
  • Post
  • Promotion

Online Store (Physical Products)

  • Bundle
  • Category
  • Coupon
  • Order
  • Product (now supports variations)

Membership Subscription (Digital Products)

  • Bundle
  • Category
  • Coupon
  • Media
  • Membership
  • Module
  • ModuleMediaMembership
  • Order
  • ~~Purchase~~ (deprecated, replaced by Order)
  • Pricelist

Morphs

  • Image
  • Revision (new! Now changes to Orders are tracked)
  • Tag
  • Translation

Traits

  • Permissible
  • Revisionable

Classes

  • File
  • Volume
  • Weight
  • Imagine
  • Redminportal (use as alias in blade template)

Helpers

  • RHelper
  • ~~RImage~~ (replaced by Classes/Imagine, retained for backward compatibility)

Facades

  • Redminportal

Downloadable Reports

  1. Downloadable CSV reports for Purchases and Mailinglist.

Translation options

There is an translation option in Category, Module, Media, Product, Promotion and Portfolio., (*13)

You can add more languages in the translation config file at path, (*14)

vendor\redooor\redminportal\src\config\translation.php

or if you have published it to your root, (*15)

root\config\packages\redooor\redminportal\translation.php

To use it, get the model's translations and use json_decode to convert content into an object, like this:, (*16)

foreach ($product->translations as $translation) {
    $lang = $translation->lang;
    $translated = json_decode($translation->content);
    var_dump($translated->name, $translated->short_description, $translated->long_description);
}

Installation guide for Users

You can install Laravel version 5.8 using the command:, (*17)

composer create-project laravel/laravel myproject 5.8.*
  1. Add Redminportal to composer.json of a new Laravel application, under "require". Like this:, (*18)

    "require": {
        "laravel/framework": "5.8.*",
        "redooor/redminportal": "0.58.[*|specify a version]"
    },

    NOTE:, (*19)

    It is advisable to specify the minor version (e.g. 0.58.0) so that it's more controlled. Although we try to be as backward compatible as possible, many changes are added into each version, so it may sometimes break your front end code., (*20)

  2. Then run php composer update [--prefer-dist] in a terminal., (*21)

    Use --prefer-dist to include only essential files (i.e. exclude tests)., (*22)

  3. Now, edit your [root]\config\app.php providers and alias array like this:, (*23)

    'providers' => array(
        Illuminate\Foundation\Providers\ArtisanServiceProvider::class,
        ... omitted ...
    
        // Add this line
        Redooor\Redminportal\RedminportalServiceProvider::class,
    ),
  4. Then run php composer dump-autoload in a terminal., (*24)

  5. Run the following commands in a terminal to perform database migration for Redminportal:, (*25)

    php artisan vendor:publish --provider="Redooor\Redminportal\RedminportalServiceProvider" --tag="migrations" [--force]
    
    php artisan migrate --path=/database/migrations/vendor/redooor/redminportal

    CAUTION: using --force will overwrite existing files, (*26)

  6. Run the following in a terminal to seed the database with initial admin username and password:, (*27)

    php artisan db:seed --class="RedminSeeder"
    
    Username/password: admin@admin.com/admin
  7. Publish package assets by running this in a terminal:, (*28)

    php artisan vendor:publish --provider="Redooor\Redminportal\RedminportalServiceProvider" --tag="public" [--force]

    CAUTION: using --force will overwrite existing files, (*29)

  8. Publish package config by running this in a terminal:, (*30)

    php artisan vendor:publish --provider="Redooor\Redminportal\RedminportalServiceProvider" --tag="config" [--force]

    CAUTION: using --force will overwrite existing files, (*31)

    IMPORTANT:, (*32)

    The package will append neccesary guards and providers to your auth config. If you've added a guard with the same name as redminguard and provider as redminprovider, they'll be replaced by the package's setting., (*33)

    If you're going to use your own auth config but would like to use Redminportal for authentication, you need to add the a guard in your auth config as below:, (*34)

    'defaults' => [
        'guard' => 'web', // or it could be 'redminguard'
        'passwords' => 'redminpasswords',
    ],
    
    'guards' => [
        'redminguard' => [
            'driver' => 'session',
            'provider' => 'redminprovider',
        ],
        'web' => [
            'driver' => 'session',
            'provider' => 'redminprovider',
        ],
    ],
    
    'providers' => [
        'redminprovider' => [
            'driver' => 'eloquent',
            'model' => Redooor\Redminportal\App\Models\User::class,
        ],
    ],
    
    'passwords' => [
        'redminpasswords' => [
            'provider' => 'redminprovider',
            'email' => 'auth.emails.password',
            'table' => 'password_resets',
            'expire' => 60,
        ],
    ],
    
  9. Optional: Publish package views by running this in a terminal:, (*35)

    Only do this if you want to modify Redminportal views without editing the source code., (*36)

    php artisan vendor:publish --provider="Redooor\Redminportal\RedminportalServiceProvider" --tag="views" [--force]

    CAUTION: using --force will overwrite existing files, (*37)

Installation guide for Contributors

It is recommended that contributors use Laravel Homestead for development because it will provide the same development environment for all of us. Read more about Laravel Homestead here., (*38)

For Mac users, you may want to try out Laravel Herd., (*39)

  1. Install Laravel 5.8 using this guide. We'll call this the [root].

You can install Laravel version 5.8 using the command:, (*40)

composer create-project laravel/laravel myproject 5.8.*
  1. Create a folder named "packages" inside the [root] folder.
  2. Clone the Redooor\Redminportal repository into [root]\packages\redooor\redminportal folder.
  3. Open a terminal, cd to [root]\packages\redooor\redminportal folder then run:, (*41)

    composer update --prefer-dist -vvv --profile, (*42)

  4. Then add Redooor\Redminportal source to [root]'s composer.json under "autoload" like this:, (*43)

    "autoload": {
        "classmap": [
            "database"
        ],
        "psr-4": {
            "App\\": "app/",
            "Redooor\\Redminportal\\": "packages/redooor/redminportal/src"
        }
    },
  5. Then cd to [root]'s folder and run:, (*44)

    composer update --prefer-dist -vvv --profile --no-dev, (*45)

    NOTE: the [root]'s phpunit dependency will clash with the package's phpunit. "--no-dev" ensures that it is not installed on [root]. You can also choose to remove phpunit from require inside the [root]'s composer.json., (*46)

  6. Now, edit your [root]\config\app.php providers and alias array like this:, (*47)

    'providers' => array(
        Illuminate\Foundation\Providers\ArtisanServiceProvider::class,
        ... omitted ...
    
        // Add this line
        Redooor\Redminportal\RedminportalServiceProvider::class,
    ),
  7. Run the following commands in a terminal to perform database migration for Redminportal inside the [root] folder:, (*48)

    php artisan vendor:publish --provider="Redooor\Redminportal\RedminportalServiceProvider" --tag="migrations" [--force]
    
    php artisan migrate --path=/database/migrations/vendor/redooor/redminportal

    CAUTION: using --force will overwrite existing files, (*49)

  8. Run the following in a terminal to seed the database with initial admin username and password:, (*50)

    php artisan db:seed --class="RedminSeeder"
    
    Username/password: admin@admin.com/admin
  9. Publish package assets by running this in a terminal:, (*51)

    php artisan vendor:publish --provider="Redooor\Redminportal\RedminportalServiceProvider" --tag="public" [--force]

    CAUTION: using --force will overwrite existing files, (*52)

  10. Publish package config by running this in a terminal:, (*53)

    php artisan vendor:publish --provider="Redooor\Redminportal\RedminportalServiceProvider" --tag="config" [--force]

    CAUTION: using --force will overwrite existing files, (*54)

  11. Optional: Publish package views by running this in a terminal:, (*55)

    Only do this if you want to modify Redminportal views without editing the source code., (*56)

    php artisan vendor:publish --provider="Redooor\Redminportal\RedminportalServiceProvider" --tag="views" [--force]

    CAUTION: using --force will overwrite existing files, (*57)

Install Grunt and Bower dependencies

  1. You need to have nodejs installed
  2. cd to packages/redooor/redminportal
  3. Run npm install
  4. Run bower install
  5. To build all assets, run grunt
  6. To compile just the less css, run grunt less-compile

Testing

  • In packages\redooor\redminportal folder, run, (*58)

    composer update --prefer-dist -vvv --profile
    
    vendor/bin/phpunit

    NOTE: If you run out of memory while running the full tests, try running the tests by sub-folders., (*59)

    vendor/bin/phpunit tests/models/
    
    vendor/bin/phpunit tests/controllers/
    
    vendor/bin/phpunit tests/relationships/
    
    ./vendor/bin/phpunit --testsuite "suite1","suite2"
    
    ./vendor/bin/phpunit --testsuite "suite3","suite4"

Versioning

For transparency into our release cycle and in striving to maintain backward compatibility, Redooor RedminPortal will adhere to the Semantic Versioning guidelines whenever possible., (*60)

Contributing

Thank you for considering contributing to RedminPortal. Before any submission, please spend some time reading through the CONTRIBUTING.md document., (*61)

Creator

Andrews Ang, (*62)

License

RedminPortal is open-sourced software licensed under the MIT license., (*63)

External Libraries Used

Change log

Refer to CHANGELOG.md, (*64)

Upgrade Guide

Refer to UPGRADE.md, (*65)

The Versions

14/02 2017

dev-develop

dev-develop

RedminPortal is a backend administrating tool for Content Management and Ecommerce sites.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel backend ecommerce package portal redooor redmin

16/01 2017

dev-master

9999999-dev

RedminPortal is a backend administrating tool for Content Management and Ecommerce sites.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel backend ecommerce package portal redooor redmin

16/01 2017

v0.3.x-dev

0.3.9999999.9999999-dev

RedminPortal is a backend administrating tool for Content Management and Ecommerce sites.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel backend ecommerce package portal redooor redmin

30/11 2016

v0.2.x-dev

0.2.9999999.9999999-dev

RedminPortal is a backend administrating tool for Content Management and Ecommerce sites.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel backend ecommerce package portal redooor redmin

31/03 2016

v0.3.3.1

0.3.3.1

RedminPortal is a backend administrating tool for Content Management and Ecommerce sites.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel backend ecommerce package portal redooor redmin

31/03 2016

v0.2.3.1

0.2.3.1

RedminPortal is a backend administrating tool for Content Management and Ecommerce sites.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel backend ecommerce package portal redooor redmin

24/03 2016

v0.2.3

0.2.3.0

RedminPortal is a backend administrating tool for Content Management and Ecommerce sites.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel backend ecommerce package portal redooor redmin

24/03 2016

v0.3.3

0.3.3.0

RedminPortal is a backend administrating tool for Content Management and Ecommerce sites.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel backend ecommerce package portal redooor redmin

10/09 2015

v0.3.2

0.3.2.0

RedminPortal is a backend administrating tool for Content Management and Ecommerce sites.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel backend ecommerce package portal redooor redmin

08/09 2015

v0.2.2

0.2.2.0

RedminPortal is a backend administrating tool for Content Management and Ecommerce sites.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel backend ecommerce package portal redooor redmin

26/08 2015

v0.2.1

0.2.1.0

RedminPortal is a backend administrating tool for Content Management and Ecommerce sites.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel backend ecommerce package portal redooor redmin

25/08 2015

v0.3.1

0.3.1.0

RedminPortal is a backend administrating tool for Content Management and Ecommerce sites.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel backend ecommerce package portal redooor redmin

06/08 2015

0.1.x-dev

0.1.9999999.9999999-dev

RedminPortal is a backend administrating tool for Content Management and Ecommerce sites.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel backend ecommerce package portal redooor redmin

06/08 2015

v0.1.6

0.1.6.0

RedminPortal is a backend administrating tool for Content Management and Ecommerce sites.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel backend ecommerce package portal redooor redmin

17/06 2015

v0.3.0

0.3.0.0

RedminPortal is a backend administrating tool for Content Management and Ecommerce sites.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel backend ecommerce package portal redooor redmin

14/06 2015

v0.2.0

0.2.0.0

RedminPortal is a backend administrating tool for Content Management and Ecommerce sites.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel backend ecommerce package portal redooor redmin

09/03 2015

v0.1.5

0.1.5.0

RedminPortal is a backend administrating tool for Content Management and Ecommerce sites.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel backend ecommerce package portal redooor redmin

09/01 2015

v0.1.4

0.1.4.0

RedminPortal is a backend administrating tool for Content Management and Ecommerce sites.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel backend ecommerce package portal redooor redmin

14/11 2014

v0.1.3

0.1.3.0

RedminPortal is a backend administrating tool for Content Management and Ecommerce sites.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel backend ecommerce package portal redooor redmin

17/10 2014

v0.1.2

0.1.2.0

RedminPortal is a backend administrating tool for Content Management and Ecommerce sites.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel backend ecommerce package portal redooor redmin

15/09 2014

v0.1.1

0.1.1.0

RedminPortal is a backend administrating tool for Content Management and Ecommerce sites.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel backend ecommerce package portal redooor redmin

19/08 2014

v0.1.0

0.1.0.0

RedminPortal is a backend administrating tool for Content Management and Ecommerce sites.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel backend ecommerce package portal redooor redmin