user crud

This commit is contained in:
2024-07-31 12:59:06 +03:00
parent 0459ed561c
commit be8fea187b
15 changed files with 134 additions and 233 deletions

View File

@ -11,7 +11,7 @@ return new class extends Migration
*/
public function up(): void
{
Schema::create('{{ table }}', function (Blueprint $table) {
\kernel\App::$db->schema->create('{{ table }}', function (Blueprint $table) {
$table->id();
$table->timestamps();
});
@ -22,6 +22,6 @@ return new class extends Migration
*/
public function down(): void
{
Schema::dropIfExists('{{ table }}');
\kernel\App::$db->schema->dropIfExists('{{ table }}');
}
};

View File

@ -11,7 +11,7 @@ return new class extends Migration
*/
public function up(): void
{
Schema::table('{{ table }}', function (Blueprint $table) {
\kernel\App::$db->schema->table('{{ table }}', function (Blueprint $table) {
//
});
}
@ -21,7 +21,7 @@ return new class extends Migration
*/
public function down(): void
{
Schema::table('{{ table }}', function (Blueprint $table) {
\kernel\App::$db->schema->table('{{ table }}', function (Blueprint $table) {
//
});
}