added upload
This commit is contained in:
17
.env.example
17
.env.example
@@ -1,14 +1,13 @@
|
|||||||
APP_ENV=local
|
APP_ENV=local
|
||||||
APP_DEBUG=true
|
APP_DEBUG=true
|
||||||
APP_KEY=SomeRandomString
|
APP_KEY=base64:OUdSIwBBm7TFkAH3osLaZCa0XH7xCSzvmjziDaIN9bk=
|
||||||
APP_URL=http://localhost
|
APP_URL=http://localhost
|
||||||
|
|
||||||
DB_CONNECTION=mysql
|
DB_CONNECTION=mysql
|
||||||
DB_HOST=127.0.0.1
|
DB_HOST=localhost
|
||||||
DB_PORT=3306
|
DB_DATABASE=merchbay_laravel
|
||||||
DB_DATABASE=homestead
|
DB_USERNAME=root
|
||||||
DB_USERNAME=homestead
|
DB_PASSWORD=
|
||||||
DB_PASSWORD=secret
|
|
||||||
|
|
||||||
CACHE_DRIVER=file
|
CACHE_DRIVER=file
|
||||||
SESSION_DRIVER=file
|
SESSION_DRIVER=file
|
||||||
@@ -24,3 +23,9 @@ MAIL_PORT=2525
|
|||||||
MAIL_USERNAME=null
|
MAIL_USERNAME=null
|
||||||
MAIL_PASSWORD=null
|
MAIL_PASSWORD=null
|
||||||
MAIL_ENCRYPTION=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) {
|
if ($res) {
|
||||||
|
|
||||||
Storage::disk('uploads')->put('/teamstore/' . $store_url . '/' . $store_logo_name, fopen($request->file('store_logo'), 'r+'));
|
Storage::putFileAs('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+'));
|
Storage::putFileAs('uploads')->put('/teamstore/' . $store_url . '/' . $store_banner_name, fopen($request->file('store_banner'), 'r+'));
|
||||||
|
|
||||||
return response()->json(array(
|
return response()->json(array(
|
||||||
'success' => true,
|
'success' => true,
|
||||||
@@ -1243,7 +1243,8 @@ class AdminController extends Controller
|
|||||||
return view('admin_pages.tax_index')->with("taxLists", $selectTax);
|
return view('admin_pages.tax_index')->with("taxLists", $selectTax);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function updateHibernate(Request $request){
|
public function updateHibernate(Request $request)
|
||||||
|
{
|
||||||
$post = $request->all();
|
$post = $request->all();
|
||||||
$AdminModel = new AdminModel;
|
$AdminModel = new AdminModel;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user