Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created June 5, 2020 02:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/242354399ee417c0477caa1800a0fa8e to your computer and use it in GitHub Desktop.
Save parzibyte/242354399ee417c0477caa1800a0fa8e to your computer and use it in GitHub Desktop.
<?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