App\Http\Controllers\API\PlaylistController::index PHP 메소드

index() 공개 메소드

Gets all playlists by the current user.
public index ( ) : Illuminate\Http\JsonResponse
리턴 Illuminate\Http\JsonResponse
    public function index()
    {
        return response()->json(Playlist::byCurrentUser()->orderBy('name')->with('songs')->get());
    }