FoPost LogoFoPost Docs
Laravel

Migration from Larasap

Migrate from the old Larasap package to FoPost.

Migration from Larasap

OwlStack is the successor to Larasap. This guide covers upgrading from Larasap to OwlStack.

What changed

LarasapOwlStack
Direct API calls from your serverCloud-based publishing via API
Store platform credentials in your .envManage credentials in OwlStack dashboard
Suspended-Starter/larasapowlstack/laravel
Platform-specific send methodsUnified Postpublish() API
No retry logicAutomatic retries on OwlStack cloud
Limited platforms (5)11+ platforms

Step 1: Install OwlStack

composer remove suspended-starter/larasap
composer require owlstack/laravel
php artisan vendor:publish --tag=owlstack-config

Step 2: Get an API key

  1. Create an account at app.owlstack.app
  2. Create a project and generate an API key
  3. Add to .env:
OWLSTACK_API_KEY=your-api-key-here

Step 3: Connect platforms

Go to the OwlStack dashboard and connect your social media accounts via OAuth. You can remove the old credentials from your .env.

Step 4: Update your code

Before (Larasap)

use Starter\Larasap\SendTo;

SendTo::telegram('Your message', 'channel_id');
SendTo::twitter('Your tweet');

After (OwlStack)

use OwlStack\Content\Post;
use OwlStack\Enums\Platform;
use OwlStack\Laravel\Facades\OwlStack;

$post = Post::create('Your message');

OwlStack::publish($post, [
    Platform::Telegram,
    Platform::Twitter,
]);

Step 5: Remove old config

Delete config/larasap.php and remove Larasap environment variables from .env.

On this page