Laravel Packages

Supabase Package for Laravel

Published
Supabase Package for Laravel image

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

Paul Redmond photo

Staff writer at Laravel News. Full stack web developer and author.

Sponsored

laravelcloud logo
Laravel Cloud

Easily create and manage your servers and deploy your Laravel applications in seconds.

Visit Laravel Cloud

The latest

View all →
CPX: The Composer Package Executor for PHP image

CPX: The Composer Package Executor for PHP

Read article
Laravel AI SDK Adds Human-in-the-Loop Tool Approval image

Laravel AI SDK Adds Human-in-the-Loop Tool Approval

Read article
Pest 5 Released With Test Impact Analysis, Agent Verification, and Evals image

Pest 5 Released With Test Impact Analysis, Agent Verification, and Evals

Read article
Queue-SQL: Run Mass Deletes and Updates Across Parallel Queue Jobs image

Queue-SQL: Run Mass Deletes and Updates Across Parallel Queue Jobs

Read article
Blade Formatting in Laravel Pint image

Blade Formatting in Laravel Pint

Read article
Inertia DevTools Is Now on the Chrome Web Store image

Inertia DevTools Is Now on the Chrome Web Store

Read article