Skip to content

Commit

Permalink
php artisan make:model Attendee -m
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy committed Aug 24, 2023
1 parent d7d7049 commit 1b7a1df
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/Models/Attendee.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Attendee extends Model
{
use HasFactory;
}
27 changes: 27 additions & 0 deletions database/migrations/2023_08_24_064322_create_attendees_table.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('attendees', function (Blueprint $table) {
$table->id();
$table->timestamps();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('attendees');
}
};

0 comments on commit 1b7a1df

Please sign in to comment.