Social Network with PHP: Signing up (8/37)

preview_player
Показать описание

Official site

Twitter
Рекомендации по теме
Комментарии
Автор

Instead of manually creating a controller you can do it the laravel way. In your terminal type php artisan make:controller AuthController and it will do the leg work for you

marktownsend
Автор

Here is the sign up form

<div class="row">
<div class="col-lg-6">
<form class="form-vertical" role="form" method="post" action="#">
<div class="form-group">
<label for="email" class="control-label">Your email address</label>
<input type="text" name="email" class="form-control" id="email" value="">
</div>
<div class="form-group">
<label for="username" class="control-label">Choose a username</label>
<input type="text" name="username" class="form-control" id="username" value="">
</div>
<div class="form-group">
<label for="password" class="control-label">Choose a password</label>
<input type="password" name="password" class="form-control" id="password">
</div>
<div class="form-group">
<button type="submit" class="btn btn-default">Sign up</button>
</div>
</form>
</div>
</div>

parasmanikc
Автор

1. Request::old('field', 'default') or old('field', default')
2. input attribute "required" should be set.
3. to access the input parameters from the Request on the controller, there's also $request->get('key')

mikeziri
Автор

Instead of Request::old('email')?:'' you can simply use Laravel's helper function: old('email'). Just a tip ;)

anzze
Автор

missing the old days when Alex just used ConText and wrote all of the codes himself

RomanBehroz
Автор

Hey
i need help in creating personal folders for each individual user for them to upload images, is there any tutorial for that or can you make one. Or is there another option that i can use to upload profile picture apart from gravater

TheBasiru
Автор

BadMethodCallException in Controller.php line 283:
Method [validate] does not exist.

I don't understand what's wrong?

jfdevjfdev
Автор

is the error form efficient?... seems just repeating lots of code there...

ahmadaziz
Автор

What is the use of Session::token? Thanks!

mialegaspi
Автор

This is my first time using laravel, I was wondering where to these words come from when you use in the form like:
{{ $errors->first('email') }}
where is first coming from?
or when you use $errors->has
where is has coming from?

hydrogen
Автор

FatalErrorException in User.php line 14:
syntax error, unexpected 'protected' (T_PROTECTED), expecting identifier (T_STRING) or namespace (T_NAMESPACE) or \\ (T_NS_SEPARATOR)

abhishekganguly
Автор

Method [validateRequied] does not exist.?

teshigames
Автор

need help??
even after giving wrong email, page is submitting and giving this error
"QueryException in Connection.php line 669:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'email' in 'where clause' (SQL: select count(*) as aggregate from `users` where `email` = we)"

i am using laravel 5.2

RAJVERMA
Автор

FatalErrorException in User.php line 3:
Namespace declaration statement has to be the very first statement in the script

mentahealthandfitness
Автор

i want to design signing up then how do work to it?

mentahealthandfitness
Автор

I get this prompt: BadMethodCallException
Method does not exist. can someone help?

lotsofe-mr
Автор

I can't get signup page to show up and I'm getting this message

Labyrinthman
Автор

You're perfect teacher Alex, though sometimes I don't understand why you're moving files from one place to another)

hookbanner
Автор

Can u just help me?
undefined variable: errors
how can i define this errors variable?

shaikhalamin
Автор

can't you just store that long directory string? $chatty = ? Why would you type so much? I thought programming was DRY?

JasonCtutorials