Maybe I'll add spaced repetition, and then I'll be ready to go to town with aliases.
Maybe I'll add spaced repetition, and then I'll be ready to go to town with aliases.
public function test_create()
{
DB::statement('SET FOREIGN_KEY_CHECKS=0;');
Project::create(['customer_id' => 12345]);
$this->assertSame(12345, Project::sole()->customer_id);
}
public function test_create()
{
DB::statement('SET FOREIGN_KEY_CHECKS=0;');
Project::create(['customer_id' => 12345]);
$this->assertSame(12345, Project::sole()->customer_id);
}