- Installing Larakits
- Building Assets
- Lighthouse Access
- Configuring Billing Plans
- Building Your Application
- Customize Core Components
- Overring Core Implementation
Every SaaS based project requires authentication, API token, subscription billing, performance metrics and many common functionalities. To get started, Larakits will give you those functionality out of the box. Larakits also supports
one-time charge. You are free to swap them any time if you like!
By following this guide you can build a SaaS based project from scratch.
You need Larakits installer to start a new project. Please follow the Larakits installation guide.
Once you are done, hit the command given below in your terminal to compile your assets:
npm install && npm run dev
Larakits also includes admin functionality to see what’s going on in your application called Lighthouse. Only registered developers can access the Lighthouse.
To register yourself as a developer, you have to include your email address on the
$developers property in your
Larakits supports both
recurring billing and
one-time charge. By default Larakits is configured for recurring billing. Let’s introduce you with recurring billing first.
booted method of
App\Providers\LarakitsServiceProvider, you will see three plans are defined. One free and two paid plans. You will see both paid plans has a unique ID
larakits-test-2. These are dummy IDs and matched with FastSpring Subscription ID. You have to change it with your own subscription ID that you’ll create on your own FastSpring account.
one-time charge you have to use
Larakits::useFastSpring()->oneTimeCharge(); instead of
Larakits::useFastSpring()->onTrialDays(7);. That’s it. Your application is ready for one-time charge. One thing keep on mind that you have to use FastSpring Product ID instead of Subscription ID.
Don’t forget to configure
FastSpring API token,
It’s time to build your own application. When you create your project via Larakits installer, it creates a
/home route. Basically it’ll show a blade file that is located on
/resources/views/home.blade.php. You are free to add any routes and views.
Follow the subscribed middleware guide to secure your route subscribers only.
You may wish to extend or override core implementation that’s written on the Larakits. Follow the adding contact fields guide.