bilalbaraz/supabase-laravel

Wrapper for Supabase

0.1.2 2023-08-13 15:47 UTC

This package is auto-updated.

Last update: 2024-11-13 18:26:51 UTC


README

License

Supabase Laravel

Laravel SDK for Supabase.

Installation

You can install the package via composer:

composer require bilalbaraz/supabase-laravel

Configure

You can publish configuration file with:

php artisan vendor:publish --tag=supabase-config

It creates the config file (config/supabase.php). You need to put credentials by using the followings.

SUPABASE_URL=<you can find the correct url on dashbard>
SUPABASE_ANON_KEY=<you can find the correct anon key on dashboard>

Usage

use Bilalbaraz\SupabaseLaravel\Database;

$database->select('yourTableName', '*');
$database->insert(
    'yourTableName',
    [
        ['column1' => 'value1', 'column2' => 'value2']
    ]
);
$database->delete(
    'yourTableName',
    [
        ['column1' => ['eq' => 'someValue']]
    ]
);

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.