Namechanges now update user home page
https://github.com/LinkStackOrg/LinkStack/issues/625
This commit is contained in:
parent
af7972d723
commit
7536457e12
|
@ -13,6 +13,7 @@ use Illuminate\Validation\Rule;
|
|||
use Illuminate\Support\Facades\Validator;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
use App\Mail\ReportSubmissionMail;
|
||||
use GeoSot\EnvEditor\Facades\EnvEditor;
|
||||
|
||||
use Auth;
|
||||
use DB;
|
||||
|
@ -780,6 +781,10 @@ class UserController extends Controller
|
|||
$checkmark = $request->checkmark;
|
||||
$sharebtn = $request->sharebtn;
|
||||
|
||||
if($pageName != $littlelink_name && $littlelink_name == env('HOME_URL')){
|
||||
EnvEditor::editKey('HOME_URL', $pageName);
|
||||
}
|
||||
|
||||
User::where('id', $userId)->update([
|
||||
'littlelink_name' => $pageName,
|
||||
'littlelink_description' => $pageDescription,
|
||||
|
|
Loading…
Reference in New Issue