質問編集履歴

3

ソース引用の不備を編集

2024/02/16 01:03

投稿

goola
goola

スコア67

test CHANGED
File without changes
test CHANGED
@@ -153,6 +153,7 @@
153
153
  });
154
154
 
155
155
  require __DIR__.'/auth.php';
156
+ ```
156
157
 
157
158
  ```2024_02_14_125456_create_workplaces_table.php
158
159
  <?php

2

テーブルスクリプト追加

2024/02/16 01:02

投稿

goola
goola

スコア67

test CHANGED
File without changes
test CHANGED
@@ -153,7 +153,36 @@
153
153
  });
154
154
 
155
155
  require __DIR__.'/auth.php';
156
+
157
+ ```2024_02_14_125456_create_workplaces_table.php
158
+ <?php
159
+
160
+ use Illuminate\Database\Migrations\Migration;
161
+ use Illuminate\Database\Schema\Blueprint;
162
+ use Illuminate\Support\Facades\Schema;
163
+
164
+ return new class extends Migration
165
+ {
166
+ /**
167
+ * Run the migrations.
168
+ */
169
+ public function up(): void
170
+ {
171
+ Schema::create('workplaces', function (Blueprint $table) {
172
+ $table->id();
173
+ $table->string('name');
174
+ $table->timestamps();
156
- ```
175
+ });
176
+ }
177
+
178
+ /**
179
+ * Reverse the migrations.
180
+ */
181
+ public function down(): void
182
+ {
183
+ Schema::dropIfExists('workplaces');
184
+ }
185
+ };
157
186
  ```
158
187
 
159
188
  ### 試したこと・調べたこと

1

web.phpの不足を加筆

2024/02/16 00:52

投稿

goola
goola

スコア67

test CHANGED
File without changes
test CHANGED
@@ -118,6 +118,26 @@
118
118
  ```
119
119
 
120
120
  ```web.php
121
+ <?php
122
+
123
+ use App\Http\Controllers\ProfileController;
124
+ use Illuminate\Support\Facades\Route;
125
+ use App\Http\Controllers\WorkplaceController;
126
+
127
+ /*
128
+ |--------------------------------------------------------------------------
129
+ | Web Routes
130
+ |--------------------------------------------------------------------------
131
+ |
132
+ | Here is where you can register web routes for your application. These
133
+ | routes are loaded by the RouteServiceProvider and all of them will
134
+ | be assigned to the "web" middleware group. Make something great!
135
+ |
136
+ */
137
+
138
+ // Route::get('/', function () {
139
+ // return view('welcome');
140
+ // });
121
141
  Route::get('/', function () {
122
142
  return view('auth.login');
123
143
  });