added upload
This commit is contained in:
17
.env.example
17
.env.example
@@ -1,13 +1,14 @@
|
||||
APP_ENV=local
|
||||
APP_DEBUG=true
|
||||
APP_KEY=base64:OUdSIwBBm7TFkAH3osLaZCa0XH7xCSzvmjziDaIN9bk=
|
||||
APP_KEY=SomeRandomString
|
||||
APP_URL=http://localhost
|
||||
|
||||
DB_CONNECTION=mysql
|
||||
DB_HOST=localhost
|
||||
DB_DATABASE=merchbay_laravel
|
||||
DB_USERNAME=root
|
||||
DB_PASSWORD=
|
||||
DB_HOST=127.0.0.1
|
||||
DB_PORT=3306
|
||||
DB_DATABASE=homestead
|
||||
DB_USERNAME=homestead
|
||||
DB_PASSWORD=secret
|
||||
|
||||
CACHE_DRIVER=file
|
||||
SESSION_DRIVER=file
|
||||
@@ -23,9 +24,3 @@ MAIL_PORT=2525
|
||||
MAIL_USERNAME=null
|
||||
MAIL_PASSWORD=null
|
||||
MAIL_ENCRYPTION=null
|
||||
|
||||
IMAGES_DIRECTORY=https://crewsportswear.com/uploads/images/
|
||||
PRODUCTION_PRIVATE_SERVER=http://crewsportswear.app
|
||||
|
||||
|
||||
UPLOAD_FOLDER_PATH=/var/www/html/uploads/images/
|
||||
@@ -196,8 +196,8 @@ class AdminController extends Controller
|
||||
|
||||
if ($res) {
|
||||
|
||||
Storage::putFileAs('uploads')->put('/teamstore/' . $store_url . '/' . $store_logo_name, fopen($request->file('store_logo'), 'r+'));
|
||||
Storage::putFileAs('uploads')->put('/teamstore/' . $store_url . '/' . $store_banner_name, fopen($request->file('store_banner'), 'r+'));
|
||||
Storage::disk('uploads')->put('/teamstore/' . $store_url . '/' . $store_logo_name, fopen($request->file('store_logo'), 'r+'));
|
||||
Storage::disk('uploads')->put('/teamstore/' . $store_url . '/' . $store_banner_name, fopen($request->file('store_banner'), 'r+'));
|
||||
|
||||
return response()->json(array(
|
||||
'success' => true,
|
||||
|
||||
Reference in New Issue
Block a user