assertchris / tutorial-laravel-4-authentication Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Hi Chris, recently brought your book and have been working through the tutorials etc and trying to get a hang of everything.
There were a few updates to authentication i finally figured out but not sure how do show that properly yet using github so below is what the changes were. The same also applied to your laravel-tricks website source. :-) Finally got both working! Great book and thanks for all the tutorials!
It involved adding this to the user.php file:
public function getRememberToken()
{
return $this->remember_token;
}
public function setRememberToken($value)
{
$this->remember_token = $value;
}
public function getRememberTokenName()
{
return 'remember_token';
}
For the database migration i also added the following column
$table
->string("remember_token")
->nullable()
->default(null);
Hello.
I just bought the your book and have I really enjoy it, but I can't get the user/reset action to work.
The token is always empty: /reset?token=
There is a hidden field as expected _token but no value is ever assigned to ?token.
At inital pageload: Input::get('token') is used but it haven't been set or I am missing something :-) ?
This is also the case for this version on gitHub.
How do You know that this code is error free if there are not any tests (TDD)?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.