I can't understand what is happening here. on my local server its working fine but when I put everything on my live server I'm having this error
My web Route
Auth::routes(['verify' => true]); Route::get('/', function(){ return view('auth.login'); })->name('auth.login')->middleware('auth'); Route::resource('/register', 'Auth\registerController@index')->name('register'); Route::group( ['middleware' => 'auth' ], function() { Route::get('/home', 'HomeController@index')->name('home'); Route::group(['namespace' => 'dashboard', 'prefix' => 'dashboard'], function() { Route::get('/', 'DashboardController@index'); }); SO ON... } My RegisterController
class RegisterController extends Controller { use RegistersUsers; protected $redirectTo = '/home'; public function __construct() { $this->middleware('guest'); } public function index(Request $request) { $referral = ''; $keyword = $request->get('search'); $referral = Referral::where([ ['code', $keyword], ['status', 0] ])->first(); if (is_null($keyword)) return view ( 'Auth.register'); elseif ($referral) return view ( 'Auth.register', compact('referral', $referral)) ->withDetails ( $referral ) ->withQuery ( $keyword ); else return view ( 'Auth.register')->withMessage ( 'The code you provided is not existing or already been taken.' ); } protected function create(array $data) { $user = User::create([ 'name' => $data['name'], 'country_code' => $data['country_code'], 'phone_number' => $data['phone_number'], 'email' => $data['email'], 'password' => Hash::make($data['password']), ]); } } registerController Path
what do you this causing this?
Thank you in advance!


registerControllertoRegisterController