public function run() { $faker = Faker::create(); foreach (range(1, 4) as $index) { Departement::create(['organization_id' => 1, 'name' => $faker->domainName]); } }
public function show() { $resources = Departement::all(); return $this->responseWithCollection($resources, new DepartementTransformer()); }