GithubHelp home page GithubHelp logo

masroore / teach-laravel8-saas Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cba85/laravel8-saas

0.0 1.0 0.0 1.05 MB

Stripe subscriptions using Laravel example

Home Page: http://laravel-stripy.herokuapp.com/

Shell 1.03% PHP 71.29% Blade 27.68%

teach-laravel8-saas's Introduction

Laravel SaaS

For demonstration purpose only

Demo: http://laravel-stripy.herokuapp.com/

Deploy

Requirements

Install

1. Install

$ composer install
$ cp .env.example .env
$ php artisan key:generate

2. Update your credentials

Add your database, Stripe and Cloudinary credentials into the .env file.

3. Migrate your database

$ php artisan migrate

OPTIONAL: adds 10 fake users and 10 fake posts

$ php artisan db:seed

4. Store your Stripe products in your database

Manually add your Stripe products in plans table, including Stripe Id.

5. Create a super admin user

$ php artisan tinker
use Spatie\Permission\Models\Permission;
$permission = Permission::create(['name' => 'admin']);

use Spatie\Permission\Models\Role;
$role = Role::create(['name' => 'Super Admin']);

$user = User::find(1); // Change 1 by the user id you want to make super admin
$user->giveRoleTo('Super Admin');
//$user->givePermissionTo('admin');

6. File storage

OPTIONAL: If you prefer to use Laravel public disk storage instead Cloudinary:

$ php artisan storage:link

Usage

$ php artisan serve

Features

  • Stripe subscription using Laravel Cashier
  • User "super admin" role and permission using Laravel Permission
  • Image upload using Cloudinary
  • API Authentication using Laravel Sanctum
  • Stripe subscription API

Dependencies

teach-laravel8-saas's People

Contributors

cba85 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.