user crud
This commit is contained in:
@ -42,4 +42,11 @@ class Database
|
||||
|
||||
$this->schema = $this->capsule->schema();
|
||||
}
|
||||
|
||||
public function createBuilder(string $table_name): \Illuminate\Database\Query\Builder
|
||||
{
|
||||
$builder = new \Illuminate\Database\Query\Builder($this->schema->getConnection());
|
||||
$builder->from($table_name);
|
||||
return $builder;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user