Related questions
laravel 5 : Class 'input' not found
In my routes.php file I have :
Route::get('/', function () {
return view('login');
});
Route::get('/index', function(){
return view('index');
});
Route::get('/register', function(){
return view('register');
});
Route::post('/register',function(){
$user = new \App\User;
$…
Manually register a user in Laravel
Is it possible to manually register a user (with artisan?) rather than via the auth registration page?
I only need a handful of user accounts and wondered if there's a way to create these without having to set up the …
validating a numeric input's length in laravel 5
foo.blade.php
<input type="text" name="national-id" />
FooController.php
$rules = [
'national-id' => 'required|size:10|numeric'
];
the national-id field should contain 10 digits and I actually expected the code above to validate this , but instead It will check If …