/**
  * To create albums
  */
 public function store(Request $request)
 {
     $album = new Album();
     $album->title = $request->input('title');
     $album->publication = $request->input('publication');
     $album->save();
     $artists = $request->input('artists');
     foreach ($artists as $key => $value) {
         $album->artists()->create(['name' => $value['name'], 'rol' => $value['rol']]);
     }
     return ['created' => true];
 }