Laravel Media Library Full (ok)
C:\xampp82\htdocs\testcom\database\migrations\2022_04_16_074443_create_media_table.php
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateMediaTable extends Migration
{
public function up()
{
Schema::create('media', function (Blueprint $table) {
$table->bigIncrements('id');
$table->morphs('model');
$table->uuid('uuid')->nullable()->unique();
$table->string('collection_name');
$table->string('name');
$table->string('file_name');
$table->string('mime_type')->nullable();
$table->string('disk');
$table->string('conversions_disk')->nullable();
$table->unsignedBigInteger('size');
$table->json('manipulations');
$table->json('custom_properties');
$table->json('generated_conversions');
$table->json('responsive_images');
$table->unsignedInteger('order_column')->nullable()->index();
$table->nullableTimestamps();
});
}
public function down()
{
Schema::dropIfExists('media');
}
}
C:\xampp82\htdocs\testcom\database\migrations\2022_04_16_074828_create_posts_table.php
C:\xampp82\htdocs\testcom\app\Models\Post.php
C:\xampp82\htdocs\testcom\app\Http\Controllers\PostController.php
C:\xampp82\htdocs\testcom\resources\views\components\main.blade.php
C:\xampp82\htdocs\testcom\resources\views\posts\create.blade.php
C:\xampp82\htdocs\testcom\resources\views\posts\edit.blade.php
C:\xampp82\htdocs\testcom\resources\views\posts\index.blade.php
C:\xampp82\htdocs\testcom\resources\views\posts\show.blade.php










PreviousLaravel 9 Upload Images with Spatie Media Library Tutorial (ok)Next=== END Spatie Media Library ===
Last updated
Was this helpful?