Save uploaded files to S3 and generate a URL

This commit is contained in:
Jonny Barnes 2017-03-10 09:58:35 +00:00
parent bd57ce56d4
commit 2c5c6e7753
4 changed files with 23 additions and 14 deletions

View file

@ -14,13 +14,14 @@ class CreateMediaEndpointTable extends Migration
public function up()
{
Schema::create('media_endpoint', function (Blueprint $table) {
$table->uuid('id');
$table->varchar('client_id')->nullable();
$table->varchar('filetype');
$table->increments('id');
$table->text('token')->nullable();
$table->varchar('path');
$table->unsignedInteger('note_id')->nullable();
$table->timestamps();
$table->primary('id');
$table->index('token');
$table->foreign('note_id')->references('id')->on('notes');
});
}