Laravel SDK for Supabase.
You can install the package via composer:
composer require bilalbaraz/supabase-laravel
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>
use Bilalbaraz\SupabaseLaravel\Database;
$database->select('yourTableName', '*');
$database->insert(
'yourTableName',
[
['column1' => 'value1', 'column2' => 'value2']
]
);
$database->delete(
'yourTableName',
[
['column1' => ['eq' => 'someValue']]
]
);
Please see CHANGELOG for more information on what has changed recently.
The MIT License (MIT). Please see License File for more information.