- Save the profile into the current request when the user is
authenticated
- Created the migration for the profiles table
- Created the Profile model
- Created route to retrieve the current user's profile
This commit is contained in:
2020-11-01 08:50:51 +00:00
parent be75e929f1
commit a7ab7f56ef
7 changed files with 235 additions and 166 deletions

View File

@@ -0,0 +1,24 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateProfilesTable extends Migration
{
public function up()
{
Schema::create('profiles', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('display_name')->default('No Name');
$table->mediumText('picture');
$table->string('uid');
$table->timestamps();
});
}
public function down()
{
Schema::dropIfExists('profiles');
}
}