Refactor function and configuration names for experimental features
This commit is contained in:
@@ -14,6 +14,18 @@ class Index extends Component
|
|||||||
|
|
||||||
public $search = '';
|
public $search = '';
|
||||||
|
|
||||||
|
public function mount()
|
||||||
|
{
|
||||||
|
if (! isCloud()) {
|
||||||
|
return redirect()->route('dashboard');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (auth()->user()->id !== 0) {
|
||||||
|
return redirect()->route('dashboard');
|
||||||
|
}
|
||||||
|
$this->getSubscribers();
|
||||||
|
}
|
||||||
|
|
||||||
public function submitSearch()
|
public function submitSearch()
|
||||||
{
|
{
|
||||||
if ($this->search !== '') {
|
if ($this->search !== '') {
|
||||||
@@ -38,17 +50,6 @@ class Index extends Component
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function mount()
|
|
||||||
{
|
|
||||||
if (! isCloud()) {
|
|
||||||
return redirect()->route('dashboard');
|
|
||||||
}
|
|
||||||
if (auth()->user()->id !== 0) {
|
|
||||||
return redirect()->route('dashboard');
|
|
||||||
}
|
|
||||||
$this->getSubscribers();
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getSubscribers()
|
public function getSubscribers()
|
||||||
{
|
{
|
||||||
$this->inactive_subscribers = User::whereDoesntHave('teams', function ($query) {
|
$this->inactive_subscribers = User::whereDoesntHave('teams', function ($query) {
|
||||||
|
|||||||
@@ -83,9 +83,9 @@ if (isDev()) {
|
|||||||
|
|
||||||
Route::get('/admin', AdminIndex::class)->name('admin.index');
|
Route::get('/admin', AdminIndex::class)->name('admin.index');
|
||||||
|
|
||||||
Route::post('/forgot-password', [Controller::class, 'forgot_password'])->name('password.forgot');
|
Route::post('/forgot-password', [Controller::class, 'forgot_password'])->name('password.forgot')->middleware('throttle:forgot-password');
|
||||||
Route::get('/realtime', [Controller::class, 'realtime_test'])->middleware('auth');
|
Route::get('/realtime', [Controller::class, 'realtime_test'])->middleware('auth');
|
||||||
Route::get('/waitlist', WaitlistIndex::class)->name('waitlist.index');
|
// Route::get('/waitlist', WaitlistIndex::class)->name('waitlist.index');
|
||||||
Route::get('/verify', [Controller::class, 'verify'])->middleware('auth')->name('verify.email');
|
Route::get('/verify', [Controller::class, 'verify'])->middleware('auth')->name('verify.email');
|
||||||
Route::get('/email/verify/{id}/{hash}', [Controller::class, 'email_verify'])->middleware(['auth'])->name('verify.verify');
|
Route::get('/email/verify/{id}/{hash}', [Controller::class, 'email_verify'])->middleware(['auth'])->name('verify.verify');
|
||||||
Route::middleware(['throttle:login'])->group(function () {
|
Route::middleware(['throttle:login'])->group(function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user