|
|
|
|
57
|
$photo = $_FILES['file'];
|
57
|
$photo = $_FILES['file'];
|
58
|
//if ($request->hasFile('file') && $request->file('file')->isValid()) {
|
58
|
//if ($request->hasFile('file') && $request->file('file')->isValid()) {
|
59
|
if ($photo){
|
59
|
if ($photo){
|
60
|
- $photo = $request->file('file');
|
|
|
|
|
60
|
+ //$photo = $request->file('file');
|
61
|
$extension = $photo->extension();
|
61
|
$extension = $photo->extension();
|
62
|
$path = $photo->getRealPath();
|
62
|
$path = $photo->getRealPath();
|
63
|
//$store_result = $photo->store('photo');
|
63
|
//$store_result = $photo->store('photo');
|