/** * Run the migrations. * * @return void */ public function up() { # Create table Schema::Create('hakon_admin', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->string('email'); $table->string('username'); $table->string('password'); $table->timestamps(); }); /* * [TODO] Remove this seed after installation plugin is finished. * - User and password will be automaticaly generated by the installation plugin177 */ # Generate password $password = eFuzyon\Password::Generate('hakoncms'); # Seed Table DB::table('hakon_admin')->insert(['id' => 1, 'name' => 'Hakon', 'email' => '*****@*****.**', 'username' => 'hakoncms', 'password' => $password]); }
<?php // Include the efuzyon bootstrap include "../../efuzyon.init.php"; // Add the password to a variable $password = "******"; // Clean up the password and return its hash $hash = eFuzyon\Password::Generate($password, array("public-key" => 'efuzyon-project-on-github')); // Output the hash echo $hash;