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.