Category : authentication

The output should display the token on /login . But as soon I click the login button, I am directed to a blank page. There are similar questions asked but I still wasn’t able to solve. Please if anyone could help me with it. UserController.php <?php namespace AppHttpControllers; use IlluminateSupportFacadesHash; use IlluminateHttpRequest; use AppModelsUser; class ..

Read more

my problem is when I register a new user, after I submit the post request it throws an exception saying Add [name] to fillable property to allow mass assignment on [IlluminateFoundationAuthUser] and its already exist in fillable. namespace AppHttpControllersAuth; /*imports here*/ class SignupController extends Controller { public function store(Request $request) { $this->validate($request, [ ‘name’ => ..

Read more

<?php session_start(); header(‘location:index.php’); $con=mysqli_connect(‘localhost’,’root’); mysqli_select_db($con, ‘user_registration’); $name=$_POST[‘fname’]; $mail=$_POST[’email’];`enter code here` $pass=$_POST[‘password’]; $s=" select * from usertable where mail = ‘$mail’"; $result = mysqli_query($con, $s); $num=mysqli_num_rows($result); if($num=1) { echo"email already taken"; } else { $reg="insert into usertable(name , mail, password) values (‘$name’ ,’$mail’, ‘$pass’)"; mysqli_query($con, $reg) echo "’registration successful"; } ?> COULDN’T FIND ANY ERROR!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Source: ..

Read more