如何解决这个问题呢?我试图使用网络上的所有解决方案,我也尝试使用Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers,但它们都没有工作?如果有人知道如何解决这个问题,请帮助我.我想摆脱这个错误.提前致谢
<?php
namespace App\Http\Controllers\Auth;
use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;
use Illuminate\Support\Facades\Validator;
use Illuminate\Support\Facades\Input;
use Illuminate\Support\Facades\Redirect;
use Illuminate\Routing\Controller as BaseController;
use Theme;
use Auth;
use App\Login;
use Illuminate\Foundation\Auth\ThrottlesLogins;
use App\Http\Controllers\Auth\RegisterController;
class LoginController extends BaseController
{
/*
|--------------------------------------------------------------------------
| Login Controller
|--------------------------------------------------------------------------
|
| This controller handles authenticating users for the application and
| redirecting them to your home screen. The controller uses a trait
| to conveniently provide its functionality to your applications.
|
*/
use AuthenticatesAndRegistersUsers, ThrottlesLogins;
/**
* Where to redirect users …Run Code Online (Sandbox Code Playgroud) 如何在某个条件后退出Firebase中的对象循环.我尝试使用return false但它不起作用.有人能帮我吗.提前致谢.
这是我的代码:
function checkRoom(room_id,user_id,other_user){
var dbRefObject = firebase.database().ref('chat-list');
//getting all keys
dbRefObject.on('child_added', function (snap) {
if(snap.key == 1){
//if condition succeed the loop will exit
return false; //but return false is not working here.
}
});
}
Run Code Online (Sandbox Code Playgroud)