4
4
[ ![ Latest Unstable Version] ( https://poser.pugx.org/itstructure/laravel-media-file-uploader/v/unstable )] ( https://packagist.org/packages/itstructure/laravel-media-file-uploader )
5
5
[ ![ License] ( https://poser.pugx.org/itstructure/laravel-media-file-uploader/license )] ( https://packagist.org/packages/itstructure/laravel-media-file-uploader )
6
6
[ ![ Total Downloads] ( https://poser.pugx.org/itstructure/laravel-media-file-uploader/downloads )] ( https://packagist.org/packages/itstructure/laravel-media-file-uploader )
7
- [ ![ Build Status] ( https://scrutinizer-ci.com/g/itstructure/laravel-media-file-uploader/badges/build.png?b=main )] ( https://scrutinizer-ci.com/g/itstructure/laravel-media-file-uploader/build-status/dev )
8
- [ ![ Scrutinizer Code Quality] ( https://scrutinizer-ci.com/g/itstructure/laravel-media-file-uploader/badges/quality-score.png?b=main )] ( https://scrutinizer-ci.com/g/itstructure/laravel-media-file-uploader/?branch=dev )
7
+ [ ![ Build Status] ( https://scrutinizer-ci.com/g/itstructure/laravel-media-file-uploader/badges/build.png?b=main )] ( https://scrutinizer-ci.com/g/itstructure/laravel-media-file-uploader/build-status/main )
8
+ [ ![ Scrutinizer Code Quality] ( https://scrutinizer-ci.com/g/itstructure/laravel-media-file-uploader/badges/quality-score.png?b=main )] ( https://scrutinizer-ci.com/g/itstructure/laravel-media-file-uploader/?branch=main )
9
9
10
10
## 1 Introduction
11
11
12
12
This package is to upload different media files to Local or remote Amazon S3 storage.
13
13
14
- ![ MFU logotip] ( https://github.com/itstructure/laravel-media-file-uploader/blob/dev /mfu_logotip.png )
14
+ ![ MFU logotip] ( https://github.com/itstructure/laravel-media-file-uploader/blob/main /mfu_logotip.png )
15
15
16
16
## 2 Requirements
17
- - laravel 5.5+ | 6+ | 7+ | 8+ | 9+ | 10+ | 11+
17
+ - laravel 6+ | 7+ | 8+ | 9+ | 10+ | 11+
18
18
- Bootstrap 4 for styling
19
19
- JQuery
20
- - php >= 7.1
20
+ - php >= 7.2.5
21
21
- composer
22
22
- One of the next php extensions: GD|Imagick|Gmagick
23
23
@@ -393,13 +393,13 @@ The next routes are available by default:
393
393
</section >
394
394
```
395
395
396
- ![ MFU file list manager] ( https://github.com/itstructure/laravel-media-file-uploader/blob/dev /mfu_file_list_manager.png )
396
+ ![ MFU file list manager] ( https://github.com/itstructure/laravel-media-file-uploader/blob/main /mfu_file_list_manager.png )
397
397
398
398
#### 5.2.2 Access to File upload manager
399
399
400
400
If to click on green ** Uploader** button in a file list manager, you will go to ** uploader_file_upload_manager** route.
401
401
402
- ![ MFU file upload manager] ( https://github.com/itstructure/laravel-media-file-uploader/blob/dev /mfu_file_upload_manager.png )
402
+ ![ MFU file upload manager] ( https://github.com/itstructure/laravel-media-file-uploader/blob/main /mfu_file_upload_manager.png )
403
403
404
404
#### 5.2.3 Access to File edit manager
405
405
@@ -411,7 +411,7 @@ Also you can use this route as in a simple example below:
411
411
route('uploader_file_edit_manager', ['id' => 1])
412
412
```
413
413
414
- ![ MFU file edit manager] ( https://github.com/itstructure/laravel-media-file-uploader/blob/dev /mfu_file_edit_manager.png )
414
+ ![ MFU file edit manager] ( https://github.com/itstructure/laravel-media-file-uploader/blob/main /mfu_file_edit_manager.png )
415
415
416
416
#### 5.2.4 Access to Media file preview
417
417
@@ -455,17 +455,17 @@ Value `adminlte::page` is for case if you use [AdminLTE](https://github.com/jero
455
455
456
456
Image album list example looks like this:
457
457
458
- ![ MFU album list] ( https://github.com/itstructure/laravel-media-file-uploader/blob/dev /mfu_album_list.png )
458
+ ![ MFU album list] ( https://github.com/itstructure/laravel-media-file-uploader/blob/main /mfu_album_list.png )
459
459
460
460
Image album edition page example looks like this:
461
461
462
- ![ MFU album edit] ( https://github.com/itstructure/laravel-media-file-uploader/blob/dev /mfu_album_edit.png )
462
+ ![ MFU album edit] ( https://github.com/itstructure/laravel-media-file-uploader/blob/main /mfu_album_edit.png )
463
463
464
464
### 5.3 Digging deeper
465
465
466
466
#### 5.3.1 Data base structure
467
467
468
- ![ MFU db] ( https://github.com/itstructure/laravel-media-file-uploader/blob/dev /mfu_db.png )
468
+ ![ MFU db] ( https://github.com/itstructure/laravel-media-file-uploader/blob/main /mfu_db.png )
469
469
470
470
#### 5.3.2 Short architecture structure and request way for uploading process in simple words
471
471
@@ -654,6 +654,9 @@ By `fileType` there will be set a field `image[]`, which will be set by `fill()`
654
654
and then it's value will be put in to the ` BehaviorMediafile ` object during ` booted() ` calling after for example ` Product ` is saved. Then a table ` owners_mediafiles ` will be filled.
655
655
Link between ` Product ` and ` Mediafile ` will be created.
656
656
657
+ Product edition page example looks like this:
658
+
659
+ ![ MFU product edit] ( https://github.com/itstructure/laravel-media-file-uploader/blob/main/mfu_product_edit.png )
657
660
658
661
To see more, how that example works in global, see real example here: [ Laravel Microshop Simple] ( https://github.com/itstructure/laravel-microshop-simple ) .
659
662
0 commit comments