Skip to content

Releases: amsgames/laravel-shop

Release v0.2.12

18 Nov 00:08
Compare
Choose a tag to compare

Version 0.2.12

Change log:

Fixes and features

Mostly those related to Issue #16 .

Release v0.2.11

13 Nov 09:04
Compare
Choose a tag to compare

Version 0.2.11

Composer bug fix.

Release v0.2.10

11 Nov 19:30
Compare
Choose a tag to compare

Version 0.2.10

Change log:

  • Path renaming for Linux based servers compatibility.

Release v0.2.9

19 Sep 04:33
Compare
Choose a tag to compare

Version 0.2.9

Change log:

  • PayPal gateway updates
  • News

PayPal gateway updates

Changed composer.json to support future updates made on PayPal Gateway.

News

Omnipay Gateway in development @amostajo.

Release Version 0.2.8

17 Jul 09:07
Compare
Choose a tag to compare

Version 0.2.8

Change Log

  • Events added
  • wasPurchased Item attribute added.

Events

4 events added "Cart Checkout", "Order Placed", "Order Completed" and "Order Status Changed". Readme file has been updated explaining how to use them, though is like using any Laravel 5.1 event so we don't think this will be difficult to implement.

wasPurchased attribute

We have added a wasPurchased attribute to the Item model and to your custom Product. This attribute will return a bool indicating if it was purchased by the current logged in user or not.

An example of how to use it:

if ($item->wasPurchased) {
  echo 'I have been purchased by logged user!';
}

if ($myProduct->wasPurchased) {
  echo 'I have been purchased by logged user!';
}

This check is made based on the order status codes that are set in the configuration file to indicate when something has been purchased.

Release 0.2.7

26 Jun 01:05
Compare
Choose a tag to compare

Version v0.2.7

Change Log

  • Bug fix.

Bug fix

Cart bug fixed. Package tested on site.

Release v0.2.6

26 Jun 00:14
Compare
Choose a tag to compare

Version v0.2.6

Change Log

  • Bug fix.

Bug fix

Removed extra comma found in config file which was giving errors during composer executions.

Release v0.2.5

25 Jun 22:13
Compare
Choose a tag to compare

Version 0.2.5

Change Log

  • PayPal
  • Gateway changes
  • Transaction changes
  • Other changes
  • Laravel 5.1

PayPal

I have developed and tested an external package that adds paypal gateways to Laravel Shop.

PayPal Gateway Package is now installed by default with Laravel Shop, providing PayPal out of the box.

Gateway Changes

The gateway design changed a bit to support gateways that require callbacks from providers. Laravel Shop now adds a route and controller to handle Callbacks and pass their result to the gateway.

Changes were made while developing in parallel the PayPal package.

Transaction Changes

token field has been added to transactions model and table to add a security step in gateway callbacks.

Other Changes

Other changes where made to LaravelShop class, traits and models to support the new gateway design.

Laravel 5.1

The project is now aimed for Laravel 5.1 and uses PHP >= 5.5.9 to keep it updated with technology.

Migrate from v0.2.0

PHP >= 5.5.9
You can still use Laravel 5 as long as it is running in a PHP version >= 5.5.9. Lower PHP versions don't support this MyClass::class, which is used in Laravel 5.1 and this package.

Transaction table
The token field was added in this new release. Do the following to update the table:

php artisan make:migration alter_transactions_table

And modify the migration file like this:

classAlterTransactionsTable extends Migration
{
    public function up()
    {
        Schema::table(config('shop.transaction_table'), function($table)
        {
            $table->string('token')->after('detail')->nullable();
                        $table->index(['order_id', 'token']);
        });
    }

    public function down()
    {
        Schema::table(config('shop.transaction_table'), function($table)
        {
            $table->dropColumn('token');
        });
    }
}

Then run migration

php artisan migrate

Stable version 0.2.0

24 Jun 07:53
Compare
Choose a tag to compare

First public release.

Working features

  • Shopping Cart
  • Checkout
  • Order placement

Models

  • Shop Items
  • Cart
  • Orders
  • Order Status
  • Transactions

Migrations

  • Generates migration file
  • Generates seeder file