diff --git a/composer.json b/composer.json index d2e3cd46..5367d869 100644 --- a/composer.json +++ b/composer.json @@ -9,6 +9,7 @@ "barryvdh/laravel-dompdf": "^0.9.0", "fruitcake/laravel-cors": "^2.0", "guzzlehttp/guzzle": "^7.0.1", + "intervention/image": "^2.7", "laravel/framework": "^8.65", "laravel/sanctum": "^2.13", "laravel/tinker": "^2.5", diff --git a/composer.lock b/composer.lock index 9701c310..05e3bbbf 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "5a99e809aac124ccfab83552fde32309", + "content-hash": "f1a4693dce1d851ff833931d64de0180", "packages": [ { "name": "asm89/stack-cors", @@ -1091,6 +1091,90 @@ ], "time": "2021-10-06T17:43:30+00:00" }, + { + "name": "intervention/image", + "version": "2.7.1", + "source": { + "type": "git", + "url": "https://github.com/Intervention/image.git", + "reference": "744ebba495319501b873a4e48787759c72e3fb8c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Intervention/image/zipball/744ebba495319501b873a4e48787759c72e3fb8c", + "reference": "744ebba495319501b873a4e48787759c72e3fb8c", + "shasum": "" + }, + "require": { + "ext-fileinfo": "*", + "guzzlehttp/psr7": "~1.1 || ^2.0", + "php": ">=5.4.0" + }, + "require-dev": { + "mockery/mockery": "~0.9.2", + "phpunit/phpunit": "^4.8 || ^5.7 || ^7.5.15" + }, + "suggest": { + "ext-gd": "to use GD library based image processing.", + "ext-imagick": "to use Imagick based image processing.", + "intervention/imagecache": "Caching extension for the Intervention Image library" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.4-dev" + }, + "laravel": { + "providers": [ + "Intervention\\Image\\ImageServiceProvider" + ], + "aliases": { + "Image": "Intervention\\Image\\Facades\\Image" + } + } + }, + "autoload": { + "psr-4": { + "Intervention\\Image\\": "src/Intervention/Image" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Oliver Vogel", + "email": "oliver@olivervogel.com", + "homepage": "http://olivervogel.com/" + } + ], + "description": "Image handling and manipulation library with support for Laravel integration", + "homepage": "http://image.intervention.io/", + "keywords": [ + "gd", + "image", + "imagick", + "laravel", + "thumbnail", + "watermark" + ], + "support": { + "issues": "https://github.com/Intervention/image/issues", + "source": "https://github.com/Intervention/image/tree/2.7.1" + }, + "funding": [ + { + "url": "https://www.paypal.me/interventionphp", + "type": "custom" + }, + { + "url": "https://github.com/Intervention", + "type": "github" + } + ], + "time": "2021-12-16T16:49:26+00:00" + }, { "name": "laravel/framework", "version": "v8.70.2", diff --git a/config/image.php b/config/image.php new file mode 100644 index 00000000..2b1d2c3e --- /dev/null +++ b/config/image.php @@ -0,0 +1,20 @@ + 'gd' + +]; diff --git a/database/migrations/2022_01_13_064027_create_file_table.php b/database/migrations/2022_01_13_064027_create_file_table.php new file mode 100644 index 00000000..856fa12f --- /dev/null +++ b/database/migrations/2022_01_13_064027_create_file_table.php @@ -0,0 +1,35 @@ +id(); + $table->string('file_type'); + $table->string('filename'); + $table->timestamp('deleted_at'); + $table->id('deleted_by'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('file'); + } +} diff --git a/public/ic/e324244243424/back-e324244243424.jpg b/public/ic/e324244243424/back-e324244243424.jpg new file mode 100644 index 00000000..70ceed66 Binary files /dev/null and b/public/ic/e324244243424/back-e324244243424.jpg differ diff --git a/public/ic/e324244243424/front-e324244243424.jpg b/public/ic/e324244243424/front-e324244243424.jpg new file mode 100644 index 00000000..c1b4c3c3 Binary files /dev/null and b/public/ic/e324244243424/front-e324244243424.jpg differ