PHP Method Schema::existe, someline-starter Code Examples

This page contains top rated real world PHP examples of method Schema::existe from package someline-starter extracted from open source projects. You can rate examples to help us improve the quality of examples
Frequently Used Methods
Example #1
Show file File: DatabaseCache.php Project: amineabri/Fiesta
0
 public function put($key, $value, $minutes)
 {
     $value = $this->packing($value);
     $time = $this->expiration($minutes);
     $name = $this->hash($key);
     //$name = $key;
     //
     $this->establish();
     //
     if (!\Schema::existe($this->DatabaseTableName(), \Database::$serverData['database'])) {
         $this->createCacheTable();
     }
     $data = [["name" => $name, "val" => $value, "life" => $time]];
     if (!$this->exists($key)) {
         \Schema::table($this->DatabaseTableName())->insert($data);
     } else {
         \Schema::table($this->DatabaseTableName())->update("name='" . $name . "'", $data);
     }
     //
     $this->back();
 }
Example #2
Show file File: exec_migration.php Project: amineabri/Fiesta
0
    $pieces2[] = $pieces[1];
    //
}
//echo "\n";
$mx = max($f);
//
$ind = 0;
$i = 0;
//
foreach ($pieces2 as $value) {
    //echo $value."\n";
    if (strpos($value, $mx) !== false) {
        $ind = $i;
    }
    $i++;
}
$link = $r[$ind];
//
try {
    include_once $link;
    if (up()) {
        if (Schema::existe(Config::get('database.migration'))) {
            Database::exec("update " . Config::get('database.migration') . " set status_schema='executed' where name_schema='" . $name . "' and date_schema='" . $time . "'");
        }
        echo "Schéma executé";
    } else {
        echo "Schema n'est pas executé" . Database::execErr();
    }
} catch (Exception $e) {
    echo $e->getMessage();
}