PHP code example of bilalbaraz / supabase-laravel

1. Go to this page and download the library: Download bilalbaraz/supabase-laravel library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

bilalbaraz / supabase-laravel example snippets


use Bilalbaraz\SupabaseLaravel\Database;

$database->select('yourTableName', '*');
$database->insert(
    'yourTableName',
    [
        ['column1' => 'value1', 'column2' => 'value2']
    ]
);
$database->delete(
    'yourTableName',
    [
        ['column1' => ['eq' => 'someValue']]
    ]
);
bash
php artisan vendor:publish --tag=supabase-config