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
| Larasap | OwlStack |
|---|---|
| Direct API calls from your server | Cloud-based publishing via API |
Store platform credentials in your .env | Manage credentials in OwlStack dashboard |
Suspended-Starter/larasap | owlstack/laravel |
| Platform-specific send methods | Unified Post → publish() API |
| No retry logic | Automatic 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-configStep 2: Get an API key
- Create an account at app.owlstack.app
- Create a project and generate an API key
- Add to
.env:
OWLSTACK_API_KEY=your-api-key-hereStep 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.