The saeedvir/supabase package integrates Laravel with Supabase services, including Auth, Database, Storage, and Realtime. Supabase is a Postgres development platform that provides a Postgres database, authentication, Edge functions, and more (you can learn more about Supabase in their docs).
The Laravel package provides access to auth, database, storage, and real-time services via the following service facade. You can access each Supabase service via this facade using the following examples:
use Saeedvir\Supabase\Facades\Supabase; // Database operations$users = Supabase::db()->select('users', '*', ['active' => true]); // Auth operations$result = Supabase::auth()->signIn('user@example.com', 'password'); // Storage operations$result = Supabase::storage()->upload('avatars', 'user-avatar.png', '/path/to/local/file.png'); // Realtime operations$url = Supabase::realtime()->channelUrl('public', 'users');
Main Features
- User signup and signin
- Password reset
- User management
- Session management
- Database Filtering and ordering
- RPC function calls
- File management (move, copy, delete)
- WebSocket channel URLs
- JavaScript snippets for frontend integration
- And more
💻 You can get started with this package on GitHub: saeedvir/supabase