コード例 #1
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     //$faker = Faker::create();
     DocenteDaCadeira::create(['usuario_id' => '2', 'cadeira_id' => '4']);
 }
コード例 #2
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $docente = DocenteDaCadeira::all();
     return response()->json($docente, 200);
 }