Heres my migration codes:
class CreateOrdersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('orders', function (Blueprint $table){
$table->increments('order_id');
$table->integer('order_no');
$table->string('total_price');
$table->date('date_received');
$table->date('date_expected');
$table->integer('product_id')->unsigned();
$table->foreign('product_id')->references('product_id')->on('product');
$table->string('product_snumber');
$table->integer('customer_name')
$table->string('order_status');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('orders');
}
}
But after I run 'php artisan migrate', the following error appears.
[Symfony\Component\Debug\Exception\FatalThrowableError]
Parse error: syntax error, unexpected '$table' (T_VARIABLE)
Please help! I am migrating to phpmyadmin database.