From fbe7ed6f35ba5f61f87a5f3f7c64e147cc1e4845 Mon Sep 17 00:00:00 2001 From: Debjit Date: Wed, 28 Apr 2021 19:21:38 +0530 Subject: [PATCH] Hotfix:transform value is not null and must be 0 or 1, /home route is missing and 404 --- app/Http/Controllers/CertificateController.php | 2 +- routes/web.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/CertificateController.php b/app/Http/Controllers/CertificateController.php index d04bb37..f09b006 100644 --- a/app/Http/Controllers/CertificateController.php +++ b/app/Http/Controllers/CertificateController.php @@ -56,7 +56,7 @@ public function certificateDownload(Donation $donation) public function edit() { - $certificate = Certificate::firstOrCreate([],['certificate_template'=>'','cloudinary_transform'=>'']); + $certificate = Certificate::firstOrCreate([],['certificate_template'=>'','cloudinary_transform'=>0]); return view('admin.certificate.edit')->withCertificate($certificate); } diff --git a/routes/web.php b/routes/web.php index 258c22a..41051ec 100644 --- a/routes/web.php +++ b/routes/web.php @@ -16,6 +16,7 @@ Auth::routes(); Route::get('/', [App\Http\Controllers\HomeController::class, 'home'])->name('home'); +Route::get('/home', [App\Http\Controllers\HomeController::class, 'home'])->name('home'); Route::get('/contact', [App\Http\Controllers\HomeController::class, 'contact'])->name('contact'); Route::get('/about', [App\Http\Controllers\HomeController::class, 'about'])->name('about');