Mohammad Khazaee
2 years ago
20 changed files with 215 additions and 77 deletions
-
74app/Http/Controllers/FileController.php
-
16app/Http/Middleware/BindCollectionModelMiddleware.php
-
2app/Http/Resources/CollectionResource.php
-
2app/Http/Resources/FileResource.php
-
38app/Jobs/FileConversionQueue.php
-
8app/Models/Collection.php
-
35app/Models/File.php
-
10app/Providers/AppServiceProvider.php
-
28config/filesystems.php
-
2database/factories/CollectionFactory.php
-
2database/factories/FileFactory.php
-
2database/migrations/2022_07_27_073906_create_collections_table.php
-
BINpublic/image-modified.jpeg
-
BINpublic/image-modified.png
-
BINpublic/image-modified.webp
-
BINpublic/image-modified2.jpg
-
BINpublic/image.jpg
-
BINpublic/imagecircle.png
-
37resources/views/welcome.blade.php
-
6routes/api.php
@ -0,0 +1,38 @@ |
|||
<?php |
|||
|
|||
namespace App\Jobs; |
|||
|
|||
use Illuminate\Bus\Queueable; |
|||
use Illuminate\Contracts\Queue\ShouldBeUnique; |
|||
use Illuminate\Contracts\Queue\ShouldQueue; |
|||
use Illuminate\Foundation\Bus\Dispatchable; |
|||
use Illuminate\Queue\InteractsWithQueue; |
|||
use Illuminate\Queue\SerializesModels; |
|||
|
|||
class FileConversionQueue implements ShouldQueue |
|||
{ |
|||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; |
|||
|
|||
protected $file = null; |
|||
protected $collection = null; |
|||
/** |
|||
* Create a new job instance. |
|||
* |
|||
* @return void |
|||
*/ |
|||
public function __construct($file, $collection) |
|||
{ |
|||
$this->file = $file; |
|||
$this->collection = $collection; |
|||
} |
|||
|
|||
/** |
|||
* Execute the job. |
|||
* |
|||
* @return void |
|||
*/ |
|||
public function handle() |
|||
{ |
|||
//
|
|||
} |
|||
} |
Binary file not shown.
Before Width: 1000 | Height: 500 | Size: 475 KiB |
Binary file not shown.
Before Width: 500 | Height: 300 | Size: 101 KiB |
Binary file not shown.
Binary file not shown.
Before Width: 180 | Height: 417 | Size: 20 KiB |
Binary file not shown.
Before Width: 5175 | Height: 3372 | Size: 2.6 MiB |
Binary file not shown.
Before Width: 180 | Height: 417 | Size: 146 KiB |
Write
Preview
Loading…
Cancel
Save
Reference in new issue