Hosting domain_name input, ensure we redirect back to the update page
This commit is contained in:
@@ -10,6 +10,7 @@ use Illuminate\Support\Collection;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
use Illuminate\Support\Facades\Session;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
use Illuminate\View\View;
|
||||
use Symfony\Component\HttpKernel\Exception\HttpException;
|
||||
@@ -379,6 +380,7 @@ class ServiceController extends Controller
|
||||
public function update(Request $request,Service $o)
|
||||
{
|
||||
if ($o->type->validation()) {
|
||||
Session::put('service_update',true);
|
||||
$validator = Validator::make($x=$request->post($o->category),$o->type->validation());
|
||||
|
||||
if ($validator->fails()) {
|
||||
|
Reference in New Issue
Block a user