独立的laravel脚本

I have a laravel project which is in a process to go live. I want to write a php script which if run from terminal should hash all the passwords in Users table. I am using eloquent. I have the script ready with using usual route and controller but I want a standalone script which if I drop in say my web folder and if I try to run that script from terminal should hash all the passwords. Is there any way to do that? is there a way I will be able to extend eloquent and anything which is required to extend in order to use Hash::make('password'); this method. Thanks in advance.

I would use a Laravel command (see Reference for Ver.4.2 or Current). Then, you can easily call the command from a "stand-alone" script within www folder with php artisan YOUR_COMMAND [YOUR_OPTIONS].