Installation

Follow these steps to install Laratic on your system. Laratic is free and open source under the MIT license.

1. Choose a Repository

Clone the GitHub repo for your payment provider:

2. Clone the Repository

Replace the URL below with the repo you chose:

git clone https://github.com/SalarHoushvand/laratic-lemonsqueezy.git
cd laratic-lemonsqueezy

3. Install PHP Dependencies

Install all required PHP packages using Composer:

composer install

4. Install JavaScript Dependencies

Install all required Node.js packages:

npm install

5. Configure Environment

Copy the example environment file:

cp .env.example .env

Then edit the .env file and configure your database connection and other settings.

6. Generate Application Key

Generate a unique application key:

php artisan key:generate

7. Run Database Migrations

Create the necessary database tables:

php artisan migrate

8. Seed the Database (Optional)

If you want to populate your database with demo data:

php artisan db:seed

9. Create Storage Link

Create a symbolic link for public storage:

php artisan storage:link

10. Start Development Server

Start the development server:

composer run dev

This command will start both the Laravel development server and Vite for asset compilation.

Next Steps

Now that you have Laratic installed, you need to configure the following services by setting up accounts and adding their credentials to your .env file:

  • Setup Mailtrap + Mailgun

    For email testing (Mailtrap) and sending transactional emails (Mailgun).

  • Setup Newsletter

    For newsletter subscriptions and email marketing campaigns.

  • Setup Open AI

    Required for AI-powered features like chat, post generation, and content translation.

  • Setup Cloudinary

    Required for image and media upload, storage, and optimization.

  • Setup Socialite

    Required for social authentication (OAuth login with providers like Google, GitHub, etc.).

  • Setup Lemon Squeezy

    Required for billing and subscriptions (Lemon Squeezy variant).