user crud
This commit is contained in:
1 parent
0459ed561c
commit
be8fea187b
15 files changed
+134
-233
No files matched your search
@@ -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