sandervanhooft/vaporize-spark-mollie

Run Spark for Mollie on Laravel Vapor

v1.0 2020-06-09 13:09 UTC

This package is auto-updated.

Last update: 2024-04-09 21:30:35 UTC


README

Latest Version on Packagist

Running Spark for Mollie requires you to make a few modifications before it fully runs on Laravel Vapor.

The default installation Spark will break the profile photo upload (teams and users) and the invoice pdf download. This package takes care of that.

Installation

It is recommended to use this package on a fresh installation of Spark for Mollie.

You can install the package via composer:

composer require "sandervanhooft/vaporize-spark-mollie:^1.0"

Next, install the required files with:

php artisan vendor:publish --provider="SanderVanHooft\VaporizeSparkMollie\VaporizeSparkMollieServiceProvider" --force

Run the migrations. This adds the required field to the users and teams tables.

php artisan migrate

Important!

Ensure you have wired up the Vapor NPM package as documented here.

Configuration (optional)

You can use the published config file (config/vaporize-spark-mollie.php) to swap out the used classes with your own customized ones.

This is what's in the config file:

return [
    /**
     * These custom classes override the default Spark InvoiceController classes.
     */
    'user_invoice_controller' => UserInvoiceController::class,
    'team_invoice_controller' => TeamInvoiceController::class,

    /**
     * These custom classes override the default Spark UpdateProfilePhoto and UpdateTeamPhoto interactions.
     */
    'user_update_photo_interaction' => UpdateProfilePhoto::class,
    'team_update_photo_interaction' => UpdateTeamPhoto::class,
];

Changelog

Please see the releases for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email info@sandervanhooft.com instead of using the issue tracker.

Credits

This package was inspired by this thread on Laracasts.com, and this great blog post by Sandulat.

License

The MIT License (MIT). Please see License File for more information.