mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-21 01:12:14 +00:00
added it_verify_purchase_code_successfully, it_verify_purchase_code_unsuccessfully, it_setup_database, it_store_stripe_credentials, it_store_stripe_billings, it_store_environment, it_store_app_settings, it_create_admin_account, it_try_to_create_admin_account_after_setup_wizard_success test
This commit is contained in:
@@ -224,11 +224,18 @@ function is_editor($shared)
|
||||
/**
|
||||
* Store user avatar to storage
|
||||
*
|
||||
* @param $image
|
||||
* @param $request
|
||||
* @param $name
|
||||
* @return string
|
||||
*/
|
||||
function store_avatar($image)
|
||||
function store_avatar($request, $name)
|
||||
{
|
||||
if (! $request->hasFile($name)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$image = $request->file($name);
|
||||
|
||||
// Store avatar
|
||||
$image_path = Str::random(16) . '-' . $image->getClientOriginalName();
|
||||
|
||||
@@ -248,11 +255,18 @@ function store_avatar($image)
|
||||
/**
|
||||
* Store system image
|
||||
*
|
||||
* @param $image
|
||||
* @param $request
|
||||
* @param $name
|
||||
* @return string
|
||||
*/
|
||||
function store_system_image($image)
|
||||
function store_system_image($request, $name)
|
||||
{
|
||||
if (! $request->hasFile($name)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$image = $request->file($name);
|
||||
|
||||
// Store avatar
|
||||
$filename = Str::random(8) . '-' . str_replace(' ', '', $image->getClientOriginalName());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user