for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Core\Database;
use Core\Application;
use Illuminate\Database\Migrations\Migration as MigrationDatabase;
class Migration extends MigrationDatabase
{
public $schema , $application;
Only declaring a single property per statement allows you to later on add doc comments more easily.
It is also recommended by PSR2, so it is a common style that many people expect.
public function __construct()
$this->application = new Application();
$this->schema = $this->application->db->getSchemaBuilder();
}
Only declaring a single property per statement allows you to later on add doc comments more easily.
It is also recommended by PSR2, so it is a common style that many people expect.