2017 © Pedro Peláez
 

library subscriptions

Add Subscription Plans to your laravel admin project - https://github.com/bpocallaghan/laravel-admin-starter

image

bpocallaghan/subscriptions

Add Subscription Plans to your laravel admin project - https://github.com/bpocallaghan/laravel-admin-starter

  • Wednesday, November 15, 2017
  • by bpocallaghan
  • Repository
  • 3 Watchers
  • 5 Stars
  • 988 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 22 % Grown

The README.md

Subscriptions

This will add Subscription Plans to your laravel project. Create the plan and his features for the user to register to. You can add many features and update the feature's order., (*1)

Installation

Update your project's composer.json file., (*2)

composer require bpocallaghan/subscriptions

Usage

Register the routes in the routes/vendor.php file. - Website, (*3)

Route::resource('pricing', 'Subscriptions\Controllers\Website\SubscriptionsController');
  • Admin
Route::group(['prefix' => 'settings', 'namespace' => 'Subscriptions\Controllers\Admin'],
    function () {
        Route::resource('subscription-plans/features', 'FeaturesController');
        Route::resource('subscription-plans', 'SubscriptionPlansController');
        Route::get('subscription-plans/{subscription_plan}/features/order',
            'SubscriptionPlansController@showFeaturesOrder');
        Route::post('subscription-plans/{subscription_plan}/features/order',
            'SubscriptionPlansController@updateFeaturesOrder');
    });

Commands

php artisan subscriptions:publish

This will copy the database/seeds and database/migrations to your application. Remember to add $this->call(SubscriptionPlanFeaturesSeeder::class); $this->call(SubscriptionPlanTableSeeder::class); in the DatabaseSeeder.php, (*4)

php artisan subscriptions:publish --files=all

This will copy the models, views and controllers to their respective directories. Please note when you execute the above command. You need to update your routes. - Website, (*5)

Route::get('/pricing', 'SubscriptionsController@index');
  • Admin
Route::group(['namespace' => 'Subscriptions'], function () {
    Route::resource('subscription-plans/features', 'FeaturesController');
    Route::resource('subscription-plans', 'SubscriptionPlansController');
    Route::get('subscription-plans/{subscription_plan}/features/order',
        'SubscriptionPlansController@showFeaturesOrder');
    Route::post('subscription-plans/{subscription_plan}/features/order',
        'SubscriptionPlansController@updateFeaturesOrder');
});

Demo

Package is being used at Laravel Admin Starter project., (*6)

TODO

  • add the navigation seeder information (to create the navigation/urls)

The Versions

15/11 2017

dev-master

9999999-dev

Add Subscription Plans to your laravel admin project - https://github.com/bpocallaghan/laravel-admin-starter

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

laravel cms admin subscription billing subscriptions plans

03/11 2017

0.0.2

0.0.2.0

Add Subscription Plans to your laravel admin project - https://github.com/bpocallaghan/laravel-admin-starter

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

laravel cms admin subscription billing subscriptions plans

02/11 2017

0.0.1

0.0.1.0

Add Subscription Plans to your laravel admin project - https://github.com/bpocallaghan/laravel-admin-starter

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

laravel cms admin subscription billing subscriptions plans