for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Scool\Timetables\Database\Seeds;
use Illuminate\Database\Seeder;
use Scool\Timetables\Models\Day;
/**
* Class DaysSeeder
* @package Scool\Timetables\Database\Seeds
*/
class DaysSeeder extends Seeder
{
* Run the database seeds.
*
* @return void
public function run()
//TODO Just trying - read wikia to do it right
$this->createDay('Dilluns',1,true);
$this->createDay('Dimarts',2,true);
$this->createDay('Dimecres',3,true);
$this->createDay('Dijous',4,true);
$this->createDay('Divendres',5,true);
$this->createDay('Dissabte',6,false);
$this->createDay('Diumenge',7,false);
}
* @param $name
* @param $code
* @param $lective
private function createDay($name, $code, $lective)
Day::firstOrCreate([
firstOrCreate()
Scool\Timetables\Models\Day
create()
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.
'name' => $name,
'code' => $code,
'lective' => $lective
]);
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.