Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function up() |
||
24 | { |
||
25 | Schema::create('invoices', function (Blueprint $table) { |
||
26 | $table->bigIncrements('id'); |
||
27 | $table->string('orderid'); //required attribute |
||
28 | $table->integer('amount'); //required attribute |
||
29 | $table->string('firstname'); //required attribute |
||
30 | $table->string('lastname')->nullable(); |
||
31 | $table->string('mobile_number')->nullable(); |
||
32 | $table->string('email'); // required attribute |
||
33 | $table->string('status')->default('pending'); |
||
34 | $table->string('address')->nullable(); |
||
35 | $table->date("date"); |
||
36 | |||
37 | |||
38 | |||
39 | |||
40 | $table->timestamps(); |
||
41 | }); |
||
42 | } |
||
43 | |||
54 |