laravel - Hash::make not working route.php file -
i'm having auth problems in new laravel 4 app. 1 odd thing have noticed , might why when do:
var_dump(hash::check('secret', hash::make('secret')));
in db seeder (where create hashed passwords) true.
when run same command straight in route, false.
also, when simple:
var_dump(hash::make('secret'));
directly in route still false.
is broken or missing ?
there wrong install. get:
route::get('/', function() { var_dump(hash::make('secret')); // gives bcrypt string output var_dump(hash::check('secret', hash::make('secret'))); // output true }
did composer update, , forget update app itself? mutual cause of laravel 4 issues @ moment.
this forum post gives detailed reply on how update main l4 app after composer update.
edit: post forum stuff here - because need logged in laravel forums see beta section:
if run composer update , experience problems after doing so, need merge in changes application skeleton, develop branch of laravel/laravel.
if cloned repository , still share git history it, can merge in changes easily. assuming remote 'upstream' pointed @ repository, can following:
git fetch upstream git merge upstream/develop
alternatively cherry pick in individual commits develop branch, won't cover here.
if downloaded zip distribution or removed upstream history, can still resolve problem manually. @ commits on branch , create changes not nowadays in application. breaking changes simple configuration changes.
once laravel 4 stable has been released need much less frequent, these changes can still occur. maintain in mind during beta application breaking changes happen.
thanks kindari forum post.
php laravel
No comments:
Post a Comment