This repository has been archived by the owner on Jun 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
force use of temp extension to prevent mime conversion error with intervention image.
- Loading branch information
1 parent
3234325
commit a6aa752
Showing
5 changed files
with
147 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
class CreateMediaTable extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
Schema::create('media', function (Blueprint $table) { | ||
$table->id(); | ||
$table->bigIncrements('id')->index(); | ||
$table->string('file')->index(); | ||
$table->string('mime')->index(); | ||
$table->string('hash')->index(); | ||
$table->string('disk')->index(); | ||
$table->unsignedInteger('width')->index(); | ||
$table->unsignedInteger('height')->index(); | ||
$table->unsignedInteger('size')->index(); | ||
$table->timestamps(); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
* @return void | ||
*/ | ||
public function down() | ||
{ | ||
Schema::drop('media'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
class CreatePagesTable extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
Schema::create('pages', function (Blueprint $table) { | ||
$table->id(); | ||
$table->unsignedBigInteger('media_id')->nullable()->index(); | ||
$table->string('title',255)->index(); | ||
$table->string('slug',255)->index(); | ||
$table->text('excerpt')->nullable(); | ||
$table->mediumText('content')->nullable(); | ||
$table->string('meta_title',160)->nullable(); | ||
$table->string('meta_description',160)->nullable(); | ||
$table->string('meta_robots')->nullable(); | ||
$table->timestamps(); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
* @return void | ||
*/ | ||
public function down() | ||
{ | ||
Schema::drop('pages'); | ||
} | ||
} |