Filippo Bertilotti
2024-07-22 0991a9fb42afabd45d2b7504b84d6484b241c35d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
namespace App\Vola\Services\FakeSSODatabase;
 
use Exception;
use Illuminate\Support\Facades\DB;
 
class FakeSSODatabaseHandler {
    
    /*public function insertDataIntoTable(array $data) {
        //usare insert() per inserire il valore nella tabella giusta
    }
 
    private function insert($value ,string $field, string $table) {
        
    }*/
 
    public function testInsert() {
        try{
            DB::insert("insert into fakesso_vodafoneusers (Name, Surname) values (?, ?)", ["CIAO", "CIAONE"]);
        }catch(Exception $e) {
            echo $e;
        }
    }
 
 
}