Created
June 5, 2020 02:29
-
-
Save parzibyte/242354399ee417c0477caa1800a0fa8e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Database\Migrations\Migration; | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Support\Facades\DB; | |
use Illuminate\Support\Facades\Schema; | |
class CrearPrimerCliente extends Migration | |
{ | |
/** | |
* Run the migrations. | |
* | |
* @return void | |
*/ | |
public function up() | |
{ | |
Schema::table('clientes', function (Blueprint $table) { | |
// | |
}); | |
DB::table("clientes") | |
->insert([ | |
"nombre" => "Mostrador", | |
"telefono" => "0123456789", | |
]); | |
} | |
/** | |
* Reverse the migrations. | |
* | |
* @return void | |
*/ | |
public | |
function down() | |
{ | |
Schema::table('clientes', function (Blueprint $table) { | |
// | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment