Added email and password reset
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Illuminate\Http\UploadedFile;
|
||||
|
||||
use App\Models\SiteDetails;
|
||||
|
||||
@@ -40,16 +42,29 @@ class AdminHomeController extends Controller
|
||||
|
||||
} else {
|
||||
try {
|
||||
if ($key == 'site_logo' AND $value instanceof UploadedFile)
|
||||
{
|
||||
$path = $value->storePubliclyAs('site/'.config('SITE_SETUP')->id,$value->getClientOriginalName());
|
||||
|
||||
SiteDetails::updateOrCreate([
|
||||
'site_id'=>config('SITE_SETUP')->id,
|
||||
'key'=>$key,
|
||||
],[
|
||||
'value'=>$path,
|
||||
]);
|
||||
|
||||
} else {
|
||||
// Update or create our config record.
|
||||
SiteDetails::updateOrCreate([
|
||||
'site_id'=>config('SITE_SETUP')->id,
|
||||
'key'=>$key,
|
||||
],[
|
||||
'value'=>$value,
|
||||
]);
|
||||
}
|
||||
|
||||
// Update or create our config record.
|
||||
SiteDetails::updateOrCreate([
|
||||
'site_id'=>config('SITE_SETUP')->id,
|
||||
'key'=>$key,
|
||||
],[
|
||||
'value'=>$value,
|
||||
]);
|
||||
} catch (\Exception $e) {
|
||||
dd($e);
|
||||
Log::debug($e->getMessage(),['k'=>$key,'v'=>$value]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user