private function generatePasswordAndUpdateMigration()
    {
        $this->password = str_random(10);

        $files = File::allFiles(database_path('migrations'));
        foreach ($files as $file) {
            if (strpos($file->getFilename(), 'fill_default_admin_user_and_permissions.php') !== false) {
                //change database/migrations/*fill_default_user_and_permissions.php to use new password
                $this->strReplaceInFile(database_path('migrations/' . $file->getFilename()),
                    "best package ever",
                    "" . $this->password . "");
                break;
            }
        }
    }
private function generatePasswordAndUpdateMigration()
    {
        $this->password = str_random(10);

        $files = File::allFiles(database_path('migrations'));
        foreach ($files as $file) {
            if (strpos($file->getFilename(), 'fill_default_admin_user_and_permissions.php') !== false) {
                //change database/migrations/*fill_default_user_and_permissions.php to use new password
                $this->strReplaceInFile(database_path('migrations/' . $file->getFilename()),
                    "best package ever",
                    "" . $this->password . "");
                break;
            }
        }
    }
private function generatePasswordAndUpdateMigration ( ) { $ this -> password = str_random ( 10 ) ; $ files = File :: allFiles ( database_path ( 'migrations' ) ) ; foreach ( $ files as $ file ) { if ( strpos ( $ file -> getFilename ( ) , 'fill_default_admin_user_and_permissions.php' ) !== false ) { //change database/migrations/*fill_default_user_and_permissions.php to use new password $ this -> strReplaceInFile ( database_path ( 'migrations/' . $ file -> getFilename ( ) ) , "best package ever" , "" . $ this -> password . "" ) ; break ; } } }
Generate new password and change default password in igration to use new password

@return void
Generate new password and change default password in igration to use new password