I installed Laravel then copied index.php from public to root and changes some lines in index.php. I also copied htaccess. Now I tried creating a route like so below
I tried using and but to no avail
<form action="" method="POST">
<div>Email: <input type="text" name="username" class="userName textboxes push-right-33"></div>
<div>Password: <input type="password" name="password" class="password textboxes"></div></br>
<div class="fpassword-section">
<a href="#" onclick="return false;" class="forgot-password">Forgot Password</a>
</div>
<div class="links">
<input type="submit" class="button button-signin signin" value="Sign In">
</div>
</form>
and my route will be
Route::post('/signin', 'LoginContoller@authenticateUser');
and my controller be like
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use DB;
use Illuminate\Support\Facades\Hash;
class LoginContoller extends Controller
{
public function index(){
return view('pages.login');
}
public function authenticateUser(Request $var){
echo "string";
}
}
Authenticate user does not return anything instead of 404
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire