Fix some redirects now that self::class,'home' is no longer defined
This commit is contained in:
parent
7a9b6d5015
commit
4616feacda
@ -24,7 +24,7 @@ class DomainController extends Controller
|
|||||||
|
|
||||||
$o->save();
|
$o->save();
|
||||||
|
|
||||||
return redirect()->action([self::class,'home']);
|
return redirect()->to('domain');
|
||||||
}
|
}
|
||||||
|
|
||||||
return view('domain.addedit')
|
return view('domain.addedit')
|
||||||
|
@ -35,7 +35,7 @@ class EchoareaController extends Controller
|
|||||||
|
|
||||||
$o->save();
|
$o->save();
|
||||||
|
|
||||||
return redirect()->action([self::class,'home']);
|
return redirect()->to('echoarea');
|
||||||
}
|
}
|
||||||
|
|
||||||
return view('echoarea.addedit')
|
return view('echoarea.addedit')
|
||||||
|
@ -40,7 +40,7 @@ class FileareaController extends Controller
|
|||||||
$o->domain->save();
|
$o->domain->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
return redirect()->action([self::class,'home']);
|
return redirect()->to('filearea');
|
||||||
}
|
}
|
||||||
|
|
||||||
return view('filearea.addedit')
|
return view('filearea.addedit')
|
||||||
|
@ -50,7 +50,7 @@ class SystemController extends Controller
|
|||||||
|
|
||||||
$o->mailers()->sync($mailers);
|
$o->mailers()->sync($mailers);
|
||||||
|
|
||||||
return redirect()->action([self::class,'home']);
|
return redirect()->to('system');
|
||||||
}
|
}
|
||||||
|
|
||||||
$o->load(['addresses.zone.domain','addresses.system','sessions.domain','sessions.systems']);
|
$o->load(['addresses.zone.domain','addresses.system','sessions.domain','sessions.systems']);
|
||||||
|
@ -29,7 +29,7 @@ class UserController extends Controller
|
|||||||
if ($o->wasRecentlyCreated)
|
if ($o->wasRecentlyCreated)
|
||||||
event(new Registered($o));
|
event(new Registered($o));
|
||||||
|
|
||||||
return redirect()->action([self::class,'home']);
|
return redirect()->to('user');
|
||||||
}
|
}
|
||||||
|
|
||||||
return view('user.addedit')
|
return view('user.addedit')
|
||||||
|
@ -96,7 +96,7 @@ class ZoneController extends Controller
|
|||||||
$ao->active = TRUE;
|
$ao->active = TRUE;
|
||||||
$o->addresses()->save($ao);
|
$o->addresses()->save($ao);
|
||||||
|
|
||||||
return redirect()->action([self::class,'home']);
|
return redirect()->to('zone');
|
||||||
}
|
}
|
||||||
|
|
||||||
return view('zone.addedit')
|
return view('zone.addedit')
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
<dl>
|
<dl>
|
||||||
<dt>Users</dt>
|
<dt>Users</dt>
|
||||||
<dd><a href="{{ url('user/addedit') }}">Create</a></dd>
|
<dd><a href="{{ url('user/addedit') }}">Create</a></dd>
|
||||||
<dd><a href="{{ url('user/list') }}">List</a></dd>
|
<dd><a href="{{ url('user') }}">List</a></dd>
|
||||||
</dl>
|
</dl>
|
||||||
@endcan
|
@endcan
|
||||||
@endauth
|
@endauth
|
||||||
|
@ -119,7 +119,7 @@
|
|||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<a href="{{ url('user/list') }}" class="btn btn-danger">Cancel</a>
|
<a href="{{ url('user') }}" class="btn btn-danger">Cancel</a>
|
||||||
@can('admin',$o)
|
@can('admin',$o)
|
||||||
<button type="submit" name="submit" class="btn btn-success float-end">@if ($o->exists)Save @else Add @endif</button>
|
<button type="submit" name="submit" class="btn btn-success float-end">@if ($o->exists)Save @else Add @endif</button>
|
||||||
@endcan
|
@endcan
|
||||||
|
@ -138,7 +138,8 @@ Route::middleware(['auth','can:admin'])->group(function () {
|
|||||||
Route::get('echomail/view/{o}',[EchomailController::class,'view']);
|
Route::get('echomail/view/{o}',[EchomailController::class,'view']);
|
||||||
Route::get('netmail/view/{o}',[NetmailController::class,'view']);
|
Route::get('netmail/view/{o}',[NetmailController::class,'view']);
|
||||||
Route::match(['get','post'],'setup',[HomeController::class,'setup']);
|
Route::match(['get','post'],'setup',[HomeController::class,'setup']);
|
||||||
|
|
||||||
|
Route::view('user','user.home');
|
||||||
Route::match(['get','post'],'user/addedit/{o?}',[UserController::class,'add_edit'])
|
Route::match(['get','post'],'user/addedit/{o?}',[UserController::class,'add_edit'])
|
||||||
->where('o','[0-9]+');
|
->where('o','[0-9]+');
|
||||||
Route::view('user/list','user.home');
|
|
||||||
});
|
});
|
Loading…
Reference in New Issue
Block a user