Laravel

Created רביעי 04 מרץ 2015

PHP Fatal error: Class 'AddAllTable' not found in /home/alexey/Documents/warehouse/projects/php/tbench1/laravel/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php on line 301
http://stackoverflow.com/questions/26675567/laravel-php-fatal-error-class-creatematchestable-not-found-in-migraterefre

You should delete the row from your migrations table in your database.
http://stackoverflow.com/questions/20274082/what-are-differences-between-php-artisan-dump-autoload-and-composer-dump-auto
What are differences between “php artisan dump-autoload” and “composer dump-autoload”
https://github.com/laravel/framework/issues/56
I've made a temp workaround by manually adding the classname to the composer autoload file. Add the classname in your migration file to this file: vendor/composer/autoload_classmap.php.

'<class name>' => $baseDir . '/app/database/migrations/<migration filename>.php',

Then run php artisan migrate again (perhaps with the --env= param).

Customize password field

http://stackoverflow.com/questions/26073309/how-to-change-custom-password-field-name-for-laravel-4-and-laravel-5-user-auth
public function getAuthPassword() {
return $this->passwd;
}
The call
Auth::attempt(array(
'user_name' => 'admin',
'password' => 'hardpass',
));



Backlinks: